
pandas-wizard
Pandas-Wizard (pandaswizard) is a simple Python module for providing
utility functions and wrappers for the pandas module. The module is kept simple and use of external dependencies is minimized
unless needed to enhance performance.
This is a relatively new repository, and if you find any performance or improvement scope please check the contributing guidelines for the organization. All help and criticism are appreciated. If you find any additional use cases please create a pull request or submit for a new feature.
Getting Started
The source code is currently hosted at GitHub: sharkutilities/pandas-wizard. The binary installers for the latest release are available at the Python Package Index (PyPI).
pip install -U pandas-wizard
The list of changes between each release is available here.
The purpose of the below guide is to illustrate the main features of pandas-wizard and assume the working knowledge of
the pandas module and use cases. The below example calculates the percentile of
pandas.DataFrameGroupBy object using np.percentile.
import pandaswizard as pdw # attempt to create an ubiquitous naming
# let's calculate the 50th-percentile, i.e. the median for each group
percentiles = df.groupby("group").agg({"A" : pdw.percentile(50)})
percentiles.head()
# or, preferred usage is to use in conjunture with other aggregation function like
statistics = df.groupby("group").agg({"A" : [sum, pdw.percentile(50), pdw.quantile(0.95)]})
statistics.head()
The above function calculates the 50th percentile, i.e., the median of the feature "A" based on the grouped column "group" from the data frame.
Footnote: The favicon is designed from the original pandas logo and no
copyright infringement is intended. Since the main objective is to provide a utility function for pandas the logo is re-used and developed
using canva.
Metadata
Release files for pandas-wizard 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pandas-wizard-1.1.0.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pandas_wizard-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / pandas-wizard-1.1.0.tar.gz
| Download URL | pandas-wizard-1.1.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b05285646f7dd8b782854d5c3f55105651276c99029d72826d9c9451b176d987
|
|
BLAKE2b-256 checksum How to use checksums |
144e21e1d622fcd6a3ea2645a1b71c97dc076dfda82a6a893aef45fc306aa299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|
Release files / pandas_wizard-1.1.0-py3-none-any.whl
| Download URL | pandas_wizard-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7d403eac8ba54234f2c2d9ba60439a8017a0762b362d79abcf2fc46fe950969
|
|
BLAKE2b-256 checksum How to use checksums |
c14cf62e166906daa3ffadc294d575322a8eadb6d9a5210e5992ae392ce4f991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|