Function reference

Main API

Main user-facing function.

optimize_dataframe.optimize_dataframe This function creates an optimized copy of a pandas DataFrame by applying

Column optimizers

Helpers for optimizing different column types.

optimize_numeric.optimize_numeric Downcast integer and float columns to the smallest suitable numeric dtype.
optimize_categorical.optimize_categorical This function makes a copy of a DataFrame (df) and looks through all the string columns.
optimize_special.optimize_special Identify and report columns requiring special handling based on content patterns.