A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
"pd_to_numeric": { | |
"scope": "python", | |
"description": "Convert Series datatype to numeric (will error if column has non-numeric values) ", | |
"prefix": "pd_to_numeric", | |
"body": [ | |
"pd.to_numeric(df['Column Name'])" | |
], | |
}, | |
"pd_to_numeric_nan": { | |
"scope": "python", |