Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Praateek Mahajan <[email protected]>
  • Loading branch information
praateekmahajan committed Sep 26, 2024
1 parent 2dd6e68 commit dafcca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crossfit/op/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ 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 (to match _build_dask_meta behavior)
# 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 dafcca1

Please sign in to comment.