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.8
- CHANGE: added downloads stats
- 0.0.7
- CHANGE: Readme fixed
- 0.0.6
- CHANGE: Tested version
- 0.0.5
- CHANGE: work in progress
Meta
Deepak Yadav – @imdeepak_dky – dky.united@gmail.com
Distributed under the MIT license. See LICENSE for more information.
https://github.com/deepak7376/downcast/blob/master/LICENSE
Contributing
- Fork it (https://github.com/deepak7376/downcast/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
References
https://www.kaggle.com/anshuls235/time-series-forecasting-eda-fe-modelling
Metadata
Release files for downcast 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| downcast-0.0.8.tar.gz | 2.4 kB | Without provenance | Details for downcast-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| downcast-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for downcast-0.0.8-py3-none-any.whl |
Total release size: 5.7 kB
Release files / downcast-0.0.8.tar.gz
| Download URL | downcast-0.0.8.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ad1db0c18c56c64d123475599583e15b153a53bb24260ba43f75e3e9f391901
|
|
BLAKE2b-256 checksum How to use checksums |
84181c2050d6294cdfebbc66e2fb3ef88971fe40af67e3ba33ded4a10afebc6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / downcast-0.0.8-py3-none-any.whl
| Download URL | downcast-0.0.8-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68c7d929c8308294d08c8e3be4d7590c365b24c49128530a11c0b48003daebac
|
|
BLAKE2b-256 checksum How to use checksums |
60110468306ef6b191c6f53a0005f96e289494f885556a4ab80c438adc64a99f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for downcast 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.