Aggregates multiple columns of a DataFrame
pip install a-pandas-ex-mindex-aggregate
from a_pandas_ex_mindex_aggregate import pd_add_mindex_aggregate
import pandas as pd
pd_add_mindex_aggregate()
df = pd.read_csv("https://github.com/pandas-dev/pandas/raw/main/doc/data/titanic.csv")
PassengerId Survived Pclass ... Fare Cabin Embarked
0 1 0 3 ... 7.2500 NaN S
1 2 1 1 ... 71.2833 C85 C
2 3 1 3 ... 7.9250 NaN S
3 4 1 1 ... 53.1000 C123 S
4 5 0 3 ... 8.0500 NaN S
.. ... ... ... ... ... ... ...
886 887 0 2 ... 13.0000 NaN S
887 888 1 1 ... 30.0000 B42 S
888 889 0 3 ... 23.4500 NaN S
889 890 1 1 ... 30.0000 C148 C
890 891 0 3 ... 7.7500 NaN Q
[891 rows x 12 columns]
df.d_multiindex_aggregate(['Fare', 'Age'])
PassengerId Survived ... Cabin Embarked
Fare Age ...
0.0000 19.0 [303] [0] ... [nan] [S]
25.0 [272] [1] ... [nan] [S]
36.0 [180] [0] ... [nan] [S]
38.0 [823] [0] ... [nan] [S]
39.0 [807] [0] ... [A36] [S]
... ... ... ... ...
263.0000 23.0 [89] [1] ... [C23 C25 C27] [S]
24.0 [342] [1] ... [C23 C25 C27] [S]
64.0 [439] [0] ... [C23 C25 C27] [S]
512.3292 35.0 [259, 738] [1, 1] ... [nan, B101] [C, C]
36.0 [680] [1] ... [B51 B53 B55] [C]
[815 rows x 10 columns]
Metadata
Release files for a-pandas-ex-mindex-aggregate 0.10
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 |
|---|---|---|---|---|
| a_pandas_ex_mindex_aggregate-0.10.tar.gz | 4.1 kB | Without provenance | Details for a_pandas_ex_mindex_aggregate-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a_pandas_ex_mindex_aggregate-0.10-py3-none-any.whl | Python 3 | none | any | Details for a_pandas_ex_mindex_aggregate-0.10-py3-none-any.whl |
Total release size: 9.9 kB
Release files / a_pandas_ex_mindex_aggregate-0.10.tar.gz
| Download URL | a_pandas_ex_mindex_aggregate-0.10.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a75d6c27364caed51a2157eed53a9873c034f1a545cc68ac608131301164fe3
|
|
BLAKE2b-256 checksum How to use checksums |
a1707da0e84bc1f1dff77963ef5ab671904b55ac36c67a71e333330ade0020f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / a_pandas_ex_mindex_aggregate-0.10-py3-none-any.whl
| Download URL | a_pandas_ex_mindex_aggregate-0.10-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42c3bd70ac9a34287eed615e3c24cb2855b69dd72a663ced3bd3b247054c3bd7
|
|
BLAKE2b-256 checksum How to use checksums |
731d39061a90bdcbf47d16e8e8f1780670f549ec01f9d98e60e0743ae3531a0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for a-pandas-ex-mindex-aggregate 0.10
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.