torcharrow.DataFrame.drop_null¶
- DataFrame.drop_null(how: ty.Literal['any', 'all', None] = None)¶
Return a column/frame with rows removed where a row has any or all nulls.
- Parameters:
how ({{'any','all', None}}, default None) – If ‘any’ drop row if any column is null. If ‘all’ drop row if all columns are null.
See also
icolumn.fill_null
Fill NA/NaN values using the specified method.
Examples
>>> import torcharrow as ta >>> s = ta.column([1,2,None,4]) >>> s.drop_null() 0 1 1 2 2 4 dtype: int64, length: 3, null_count: 0