Shortcuts

torcharrow.Column.drop_null

Column.drop_null(how: ty.Literal['any', 'all', None] = None)

返回一个删除了任何或所有空值的行后的列/框架。

Parameters:

如何 ({{'any','all', None}}, 默认 None) – 如果为‘any’,则如果任何列为空,则删除该行。如果为‘all’,则如果所有列都为空,则删除该行。

另请参阅

icolumn.fill_null

使用指定的方法填充NA/NaN值。

示例

>>> 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