File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
API_specification/dataframe_api Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def slice_rows(
104
104
...
105
105
106
106
107
- def get_rows_by_mask (self : Column [DType ], mask : Column [Bool ]) -> Column [DType ]:
107
+ def filter (self : Column [DType ], mask : Column [Bool ]) -> Column [DType ]:
108
108
"""
109
109
Select a subset of rows corresponding to a mask.
110
110
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ def slice_rows(
161
161
"""
162
162
...
163
163
164
- def get_rows_by_mask (self , mask : Column [Bool ]) -> DataFrame :
164
+ def filter (self , mask : Column [Bool ]) -> DataFrame :
165
165
"""
166
166
Select a subset of rows corresponding to a mask.
167
167
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ def my_dataframe_agnostic_function(df):
287
287
df = df.__dataframe_consortium_standard__(api_version = ' 2023.08-beta' )
288
288
289
289
mask = df.get_column_by_name(' species' ) != ' setosa'
290
- df = df.get_rows_by_mask (mask)
290
+ df = df.filter (mask)
291
291
292
292
for column_name in df.get_column_names():
293
293
if column_name == ' species' :
You can’t perform that action at this time.
0 commit comments