Series.replace
Replace values given in replace param with value
danfo.Series.replace(oldValue, newValue, options)
Parameters
Type
Description
Default
oldValue
Any
The value you want to replace.
newValue
Any
The new value you want to replace with.
options
Object
inplace: Boolean, indicating whether to perform the operation inplace or not.
{
inplace: false
}
Returns: Series
Examples
Replace a value in a series and return a new series
Replace a value in-place
Last updated