1 pdutil
Utilities for pandas.
import pdutil
for subdf in pdutil.iter.sub_dfs_by_size(df, 2):
print(subdf)
1.1 Installation
pip install pdutil
1.2 Basic Use
pdutil is divided into several sub-modules by functionality:
1.2.1 display
Functions related to displaying pandas DataFrames:
df_string - Returns a nicely formatted string for the given dataframe.
pandas_big_frame_setup - Sets pandas to display really big data frames.
df_to_html - Return a nicely formatted HTML code string for the given dataframe.
1.2.2 iter
Functions related to iterating over pandas dataframes:
sub_dfs_by_size - Get a generator yielding consecutive sub-dataframes of the given size.
sub_dfs_by_num - Get a generator yielding num consecutive sub-dataframes of the given df.
1.2.3 transform
x_y_by_col_lbl - Returns an X dataframe and a y series by the given column name.
or_by_masks - Returns a sub-dataframe by the logical or over the given masks.
1.2.4 serial
SerializationFormat - A mutli-singleton representing different serialization formats of dataframes.
1.3 Contributing
Package author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help. Contributions are very welcomed.
1.3.1 Installing for development
Clone:
git clone git@github.com:shaypal5/pdutil.git
Install in development mode:
cd pdutil
pip install -e .
1.3.2 Running the tests
To run the tests use:
pip install pytest pytest-cov coverage
cd pdutil
pytest
1.3.3 Adding documentation
The project is documented using the numpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings. When documenting code you add to this project, follow these conventions.
1.4 Credits
Created by Shay Palachy (shay.palachy@gmail.com).
Metadata
Release files for pdutil 0.0.11
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 |
|---|---|---|---|---|
| pdutil-0.0.11.tar.gz | 22.5 kB | Without provenance | Details for pdutil-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdutil-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for pdutil-0.0.11-py3-none-any.whl |
Total release size: 32.5 kB
Release files / pdutil-0.0.11.tar.gz
| Download URL | pdutil-0.0.11.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61f323060b57db1ac45aa12b16f57e5667f4091b59dc8d02aafe1fea97e42028
|
|
BLAKE2b-256 checksum How to use checksums |
725bfbcbf9ddda3c06ec0c5e0c47f025bd464004a07a4e9c630b6e98c0f3c8b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / pdutil-0.0.11-py3-none-any.whl
| Download URL | pdutil-0.0.11-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3663bda0dc3f6714d21ff134facb623ff5d5abe08948baf439a06c125bc4c27c
|
|
BLAKE2b-256 checksum How to use checksums |
d9a8325d66f757c29189971992ada23b90eb8a2242a9e5a228fe3aeda47ad25f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for pdutil 0.0.11
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.