Using Machine Learning to learn how to Compress
Project description
Try it live at https://shrynk.ai
Usage
Installation:
pip install shrynk
Then in Python:
from shrynk.pandas import save, load
file_path = save(my_df, "mypath")
# e.g. mypath.csv.bz2
loaded_df = load(file_path)
Add your own data
If you want more control you can do the following:
import pandas as pd
from shrynk.pandas import PandasCompressor
df = pd.DataFrame({"a": [1, 2, 3]})
pdc = PandasCompressor("default")
pdc.run_benchmarks([df], save=False) # adds data to the default
pdc.train_model(size=3, write=1, read=1)
pdc.infer(df)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shrynk-0.0.7.tar.gz
(1.2 MB
view hashes)
Built Distribution
Close
Hashes for shrynk-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ec64487fb6992b1757a506cf011bb7e3f3b2fd2860c2758a7a04647f597308 |
|
MD5 | 53212fbd48d7be53ab67b9b2c941a393 |
|
BLAKE2b-256 | d56ae0625b04345e6e152fb27134b1e552909285ceb62c8c8bb38ee973273da3 |