Skip to main content

Reduce the pandas dataframe size automatically.

Project description

downcast

Reduce the pandas dataframe size automatically.

This is the test perform on Jena dataset.

Installation

OS X , Windows & Linux:

pip install downcast

Usage example

This package is used the reduce the dataframe size without affecting the values. It find the max and min value in dataframe columns, based on these values it downcast the datatypes of that columns.

from downcast import reduce
import pandas as pd

# load your dataframe
df = pd.read_csv("PATH")
# reduce the size of dataframe
df = reduce(df) 

Development setup

For local development setup

git clone https://github.com/deepak7376/downcast
cd downcast
pip install -r requirements.txt

Release History

  • 0.0.5
    • CHANGE: work in progress

Meta

Deepak Yadav – @YourTwitterdky.united@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/deepak7376/downcast/blob/master/LICENSE

Contributing

  1. Fork it (https://github.com/deepak7376/downcast/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

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

downcast-0.0.6.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

downcast-0.0.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file downcast-0.0.6.tar.gz.

File metadata

  • Download URL: downcast-0.0.6.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for downcast-0.0.6.tar.gz
Algorithm Hash digest
SHA256 51de6e8d11a46f6831f633c3807231ebec9bd534547fe5fb199bb798af07606e
MD5 a778c6fa00158b4584d9c3da06b3b2ed
BLAKE2b-256 3555d14d398e84fddae188ec65d030d1055bbce1a7a409d03c7126fae808bd25

See more details on using hashes here.

File details

Details for the file downcast-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: downcast-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for downcast-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8e2a738948ec71c30bc85222928356770dc83d0fa13123c5732cd91c0dc6acbf
MD5 1f02d60b9a02f40b353299eeb48b0fc3
BLAKE2b-256 8aa2c47d5c9cb6b55584867f10348987e01b50dd9c4c2df9954ed46afd48f782

See more details on using hashes here.

Supported by

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