optimize local memory usages
Project description
This library reduce the size of any data frame by allocating onky the needed memory to every numerical column.
It contains two functions: new_type and reduce
** new_type(col_type,col_min,col_max): ** col_type is the current column col_type ** col_min == min value in the column ** col_max == max value in the column Using these given, informations the function will check and return what is the suitable data type to be set for the columns
** reduce(df, verbose=True)
** This function takes as arguments
1.) The dataframe df
as it is loaded from the data source
2.) If verbose = True, you will get the information about the data size reduction
Change Log
0.0.1 (27 / 11 / 2022)
- First Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.