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.

Source Distribution

dfreduce-1.7.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

dfreduce-1.7-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file dfreduce-1.7.tar.gz.

File metadata

  • Download URL: dfreduce-1.7.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for dfreduce-1.7.tar.gz
Algorithm Hash digest
SHA256 4b9f81b19c1aa536e05d7ac6755d6ed7508f34ddc9930fb8f1d2a86d44832dfa
MD5 0f5d87b07ff105e29ee80cac44d391ba
BLAKE2b-256 7622d2f21c6aeff34b7eb087e50f3d209a8ed41854cad523b8af16bf8866c51f

See more details on using hashes here.

File details

Details for the file dfreduce-1.7-py3-none-any.whl.

File metadata

  • Download URL: dfreduce-1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for dfreduce-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f60b4f3d7e4b4f371c58c01d4e17e6d6b8c154a643b3f6c5518f19cf63488926
MD5 0c05882531e0e4b88478f0095008f287
BLAKE2b-256 97f57d129116f32adddfd64fa289f09368a3ca26e3f2eae39b34a771d3178f8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page