Skip to content

Commit

Permalink
Update crossfit/op/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Vibhu Jawa <[email protected]>
  • Loading branch information
praateekmahajan and VibhuJawa authored Sep 25, 2024
1 parent 4c9c2b3 commit 2dd6e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossfit/op/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def add_keep_cols(self, data, output):
output[col] = data[col]

columns = list(output.columns)
# we use dict.fromkeys to remove duplicates and preserve order
# we use dict.fromkeys to remove duplicates and preserve order (to match _build_dask_meta behavior)
output = output[list(dict.fromkeys(self.keep_cols + columns))]

return output
Expand Down

0 comments on commit 2dd6e68

Please sign in to comment.