suggest_dtypes
Analyzes DataFrame columns and recommends memory-efficient or correct data types, such as converting numeric text to numbers or reducing oversized integers.
Instructions
Recommend more memory-efficient or more-correct column dtypes.
For each column, proposes a better dtype when one exists: text that is fully
numeric to a numeric type, low-cardinality text to category, and
oversized integer/float columns downcast to smaller types. Reports per-column
and total estimated memory savings.
Use this to help a user shrink a DataFrame's memory footprint or fix columns that were loaded with the wrong type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_rows | No |