torcharrow.Column.drop_null¶
- Column.drop_null(how: ty.Literal['any', 'all', None] = None)¶
傳回一個已移除含有任何或所有空值的列之欄/框架。
- 參數:
how ({{'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