df_io
Python helpers for doing IO with Pandas DataFrames
Available methods
read_df
- bzip2/gzip/zstandard compression
- passing parameters to Pandas' readers
- reading from anything, which
smart_opensupports (local files, AWS S3 etc) - most of the available formats, Pandas supports
write_df
This method supports:
- streaming writes
- chunked writes
- bzip2/gzip/zstandard compression
- passing parameters to Pandas' writers
- writing to anything, which
smart_opensupports (local files, AWS S3 etc) - most of the available formats, Pandas supports
Documentation
Examples
Write a Pandas DataFrame (df) to an S3 path in CSV format (the default):
import df_io
df_io.write_df(df, 's3://bucket/dir/mydata.csv')
The same with gzip compression:
df_io.write_df(df, 's3://bucket/dir/mydata.csv.gz')
With zstandard compression using pickle:
df_io.write_df(df, 's3://bucket/dir/mydata.pickle.zstd', fmt='pickle')
Using JSON lines:
df_io.write_df(df, 's3://bucket/dir/mydata.json.gz', fmt='json')
Passing writer parameters:
df_io.write_df(df, 's3://bucket/dir/mydata.json.gz', fmt='json', writer_options={'lines': False})
Chunked write (splitting the df into equally sized parts and creating/writing outputs for them):
df_io.write_df(df, 's3://bucket/dir/mydata.json.gz', fmt='json', chunksize=10000)
Metadata
Release files for df-io 0.0.12
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 |
|---|---|---|---|---|
| df_io-0.0.12.tar.gz | 6.7 kB | Without provenance | Details for df_io-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| df_io-0.0.12-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for df_io-0.0.12-py2.py3-none-any.whl |
Total release size: 13.9 kB
Release files / df_io-0.0.12.tar.gz
| Download URL | df_io-0.0.12.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6009b8f03a6bb35e57ce25033957b0ec6b8d9438977cb07e46de2256669d28d1
|
|
BLAKE2b-256 checksum How to use checksums |
3eda8248de8f141611e199599bb3e389d9e99d5d1e866c5bd8d1731a9bf70173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / df_io-0.0.12-py2.py3-none-any.whl
| Download URL | df_io-0.0.12-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2195bc9d1606a763c64c58fe4b48a3a06d9a526e0c25932ba2eb00a73fb1eebe
|
|
BLAKE2b-256 checksum How to use checksums |
1798300958e6c7c1cbac4997437105a4cd889926dfdcf29af3161ac95a458ba2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for df-io 0.0.12
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.