Automatic size reduction for pandas dataframe
Project description
dfreduce
Description: Automatically reduce the memory size of your pandas dataframe
Installation
pip install dfreduce
Usage
from dfreduce.core import DFReduce
import pandas as pd
df = pd.read_csv('https://ed-public-download.app.cloud.gov/downloads/Most-Recent-Cohorts-Scorecard-Elements.csv')
df_reduced = DFReduce(df).reduce()
# Alternatively, you can also use the inplace parameter to overwrite input dataframe
DFReduce(df, inplace=True).reduce()
Uninstallation
pip uninstall dfreduce
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dfreduce-1.7.tar.gz
(2.2 kB
view hashes)
Built Distribution
dfreduce-1.7-py3-none-any.whl
(3.4 kB
view hashes)