Skip to main content

to_numeric

Function to_numeric 

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

Convert a Series of strings/bools to numbers, matching pd.to_numeric(arg): errors='raise' by default, so an unparseable value is rejected with an Err. Pass ToNumericErrors::Coerce via to_numeric_with_options to map unparseable values to NaN instead (br-frankenpandas-mlaht).