Skip to content

Automatically reduce the memory size of any pandas dataframe based on downcasting bit types efficiently

License

Notifications You must be signed in to change notification settings

arun-nemani/dfreduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dfreduce

PyPI version

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

About

Automatically reduce the memory size of any pandas dataframe based on downcasting bit types efficiently

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages