turicreate.SArray.fillna¶
-
SArray.
fillna
(value)¶ Create new SArray with all missing values (None or NaN) filled in with the given value.
The size of the new SArray will be the same as the original SArray. If the given value is not the same type as the values in the SArray, fillna will attempt to convert the value to the original SArray’s type. If this fails, an error will be raised.
Parameters: - value : type convertible to SArray’s type
The value used to replace all missing values
Returns: - out : SArray
A new SArray with all missing values filled