Skip to content

Commit

Permalink
More narwhals
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Aug 17, 2024
1 parent f00413e commit e76be41
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,15 +484,9 @@ def drop_columns(frame, columns):
return frame.drop(columns)

@staticmethod
@nw.narwhalify
def select_columns(frame, columns):
if isinstance(frame, pd.DataFrame):
return frame[columns]
elif isinstance(frame, pa.Table):
return frame.select(columns)
elif isinstance(frame, pl.DataFrame):
return frame.select(columns)
else:
raise NotImplementedError("select_columns not implemented for type")
frame.select(columns)

@staticmethod
@nw.narwhalify
Expand Down

0 comments on commit e76be41

Please sign in to comment.