Skip to content

Commit

Permalink
fc
Browse files Browse the repository at this point in the history
Signed-off-by: Praateek Mahajan <[email protected]>
  • Loading branch information
praateekmahajan committed Sep 25, 2024
1 parent 2a0272a commit 4c9c2b3
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)
output = output[self.keep_cols + columns]
# we use dict.fromkeys to remove duplicates and preserve order
output = output[list(dict.fromkeys(self.keep_cols + columns))]

return output

Expand Down

0 comments on commit 4c9c2b3

Please sign in to comment.