Initializing playground…
← Back to roadmap

infer_objects / convert_dtypes

These utilities refine dtypes automatically — useful after reading data from CSV/JSON where everything starts as object or string:

inferObjectsSeries — promote object → typed

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

inferObjectsDataFrame — all columns at once

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

convertDtypesSeries — also parses numeric strings

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

convertDtypesDataFrame — per-column conversion

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent