Skip to content

Commit 2e9687b

Browse files
authored
add drop_nulls (#318)
1 parent 76ad5b0 commit 2e9687b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

spec/API_specification/dataframe_api/dataframe_object.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,28 @@ def fill_null(
854854
"""
855855
...
856856

857+
def drop_nulls(
858+
self,
859+
*,
860+
column_names: list[str] | None = None,
861+
) -> Self:
862+
"""Drop rows containing null values.
863+
864+
Parameters
865+
----------
866+
column_names : list[str] | None
867+
A list of column names to consider when dropping nulls.
868+
If ``None``, all columns will be considered.
869+
870+
Raises
871+
------
872+
KeyError
873+
If ``column_names`` contains a column name that is not present in
874+
the dataframe.
875+
876+
"""
877+
...
878+
857879
def to_array(self, dtype: DType) -> Any:
858880
"""Convert to array-API-compliant object.
859881

0 commit comments

Comments
 (0)