Pandas
- magna.util.pandas.optimise_df(df, integers=True, floats=True)
Optimise a Pandas DataFrame by using the smallest possible data type.
- Parameters
df (
DataFrame) – The Pandas DataFrame to optimise.integers (
bool) – Whether to optimise the integers.floats (
bool) – Whether to optimise the floats.