maxframe.liteframe.LiteFrame.fillna#
- LiteFrame.fillna(value=None)#
Fill missing values.
- Parameters:
value (scalar or dict) – Scalar value to fill all NAs, or
{column: value}for per-column fill values. Columns not present in the dict are left unchanged.- Returns:
LiteFrame with missing values filled.
- Return type:
See also
Examples
>>> import maxframe.liteframe as mlf >>> lf = mlf.LiteFrame({'a': [1.0, None, 3.0], 'b': [4.0, 5.0, None]}) >>> result = lf.fillna(0) >>> result.execute() a b 0 1.0 4.0 1 0.0 5.0 2 3.0 0.0