Skip to main content

Automatic size reduction for pandas dataframe

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dfreduce, version 1.7
Filename, size File type Python version Upload date Hashes
Filename, size dfreduce-1.7-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dfreduce-1.7.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page