suggest_dtypes
Analyze columns to recommend memory-efficient dtypes, converting numeric text to numbers and low-cardinality text to categories, reducing memory footprint.
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 |