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.
Source Distribution
File details
Details for the file reduce_df-0.0.1.tar.gz.
File metadata
- Download URL: reduce_df-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f967403c393c56c194f86077ee32b10cb555e34e339868f691b9d7860722763
|
|
| MD5 |
84f8ce95b9c71326753b665dba97817d
|
|
| BLAKE2b-256 |
e8a427f5e94120efd9cdfbb8bb1b52949befe971f61f3fa987429587a1e01da8
|