Skip to main content

Using Machine Learning to learn how to Compress

Project description

PyPI PyPI HitCount

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)

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.6.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

shrynk-0.0.6-py2.py3-none-any.whl (504.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: shrynk-0.0.6.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0a0

File hashes

Hashes for shrynk-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7a39c5b76a0198fefa365e11d12b8995ca852013ee25342025ef1fab14d712a5
MD5 8e74564d24a0bddf32898550f8ae6b20
BLAKE2b-256 023dbca71259a350bff1a56b0204cb1e725d6bd155e55a99d4d8fac1ca81e14b

See more details on using hashes here.

File details

Details for the file shrynk-0.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: shrynk-0.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 504.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0a0

File hashes

Hashes for shrynk-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1898ec6be9cf19e577cb5a5cf8620c95c5924a168ac4de9860c3680af46be7fb
MD5 294575cb9f247d2e9f17b8c7a99562fb
BLAKE2b-256 4e15a26035cd3d2d8ec375863445361496b353af5ab6f65762f60a23447c36f3

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