捷徑

torcharrow.DataFrame.drop_null

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

傳回一個欄/框架,其中已移除任何或所有欄位值為 null 的列。

參數:

how ({{'any','all', None}}, 預設值 None) – 如果為「any」,則只要任一欄位值為 null 就移除該列。如果為「all」,則只有所有欄位值皆為 null 才移除該列。

另請參閱

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

文件

取得 PyTorch 完整的開發者文件

檢視文件

教學

取得適用於初學者和進階開發者的深入教學

檢視教學

資源

尋找開發資源並獲得問題解答

檢視資源