Shortcuts

torcharrow.DataFrame.fill_null

DataFrame.fill_null(fill_value: Union[int, float, bool, str, Dict])

使用指定的方法填充空值。

Parameters:

fill_value (int, float, bool, 或 str) –

另请参阅

icolumn.drop_null

返回一个删除了行的列/框架,其中

row

示例

>>> import torcharrow as ta
>>> s = ta.column([1,2,None,4])
>>> s.fill_null(999)
0    1
1    2
2  999
3    4
dtype: int64, length: 4, null_count: 0