Tools for handling pandas objects.
Project description
pandahandler
Tools to simplify working with pandas objects DataFrame and Series.
pandahandler is a staging area for experimental tooling that could eventually be added to pandas itself. If that were to happen with any of these tools, we would remove them from this package after adding a deprecation notice and migration notes etc.
Documentation
Users currently must rely on source code docstrings for most documentation. We'll briefly describe a few of the main methods below.
- safe_hstack offers safe/strict horizontal concatenation of data frames. Calling
safe_hstack([df1, df2, df3])is much likepd.concat([df1, df2, df3])but first guarantees that (a) the columns of the input data frames are disjoint, and (b) the row-indexes of the input data frames are identical, raising helpful error messages if these conditions are not met. On stackoverlow. - log_rowcount_change is a decorator (example application) for data frame filtering functions that logs the change in row count both in raw count and percentage terms. This is useful for debugging or for monitoring the impact of a filters in data pipelines. On stackoverflow.
- indexes.Index simplifies the process of declaring data frame indexes. A user can define an index as a constant to replace index setting/checking boilerplate in across any product-specific ecosystem.On stackoverflow.
- indexes.unset is a utility for unsetting the index of a data frame, converting any existing index columns while (a) asserting that no columns of the same name already exist on the frame and (b) reverting to a no-op in case the index is already an unnamed range index. On stackoverflow.
Installation
We're on pypi, so pip install pandahandler.
Consider using the simplest-possible virtual environment if working directly on this repo.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pandahandler-0.5.2.tar.gz.
File metadata
- Download URL: pandahandler-0.5.2.tar.gz
- Upload date:
- Size: 45.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6382ce1ab53a4e239ae488aae78e417982925ef4d66c053c89d09fe588e97732
|
|
| MD5 |
b844fa48d333fc45683a0dde45ae3d21
|
|
| BLAKE2b-256 |
914df98c1b97863113c65dabf99bfaf0478d3b0a9fb1cc647d673bda0269d68a
|
File details
Details for the file pandahandler-0.5.2-py3-none-any.whl.
File metadata
- Download URL: pandahandler-0.5.2-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9a1ddf2ecf5ff78eead7b4cbdd2bfca0a6a9edf65c5b7bba6e9173a9e9b4e0
|
|
| MD5 |
1a014878ba81deba9df81639c4b694ec
|
|
| BLAKE2b-256 |
8735cf53245a5bb0cf0000ac0b240d0a5f608081e233b86e7970e217ca6c5936
|