Skip to content

Commit

Permalink
add drop_nulls (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Nov 14, 2023
1 parent 76ad5b0 commit 2e9687b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/API_specification/dataframe_api/dataframe_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,28 @@ def fill_null(
"""
...

def drop_nulls(
self,
*,
column_names: list[str] | None = None,
) -> Self:
"""Drop rows containing null values.
Parameters
----------
column_names : list[str] | None
A list of column names to consider when dropping nulls.
If ``None``, all columns will be considered.
Raises
------
KeyError
If ``column_names`` contains a column name that is not present in
the dataframe.
"""
...

def to_array(self, dtype: DType) -> Any:
"""Convert to array-API-compliant object.
Expand Down

0 comments on commit 2e9687b

Please sign in to comment.