Skip to main content

to_numeric

Function to_numeric 

Source
pub fn to_numeric(series: &Series) -> Result<Series, FrameError>
Expand description

Convert a Series to a numeric dtype.

Matches pd.to_numeric(series, errors='coerce'). Attempts to parse each value as numeric. Non-parseable values become NaN. Returns Int64 if all values are integers, Float64 otherwise.