torcharrow.Column.fill_null¶
- Column.fill_null(fill_value: Union[int, float, bool, str, Dict])¶
使用指定的方法填補空值。
- 參數:
fill_value (int, float, bool 或 str) –
另請參閱
icolumn.drop_null
傳回一個已移除空值列的欄/框架
列
範例
>>> 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