Skip to main content

Splits a DataFrame/Series logarithmically

pip install a-pandas-ex-logsplit
from a_pandas_ex_logsplit import pd_add_logsplit

pd_add_logsplit()

import pandas as pd

df = pd.read_csv("https://github.com/pandas-dev/pandas/raw/main/doc/data/titanic.csv")

df = df[:50]

for h in df.ds_logsplit(columns=["Cabin", "Fare"], includeindex=False):

    print(h)

for h in df.ds_logsplit(columns="Cabin", includeindex=True):

    print(h)

for h in df.ds_logsplit(columns="Cabin", includeindex=False):

    print(h)

for h in df.Cabin.ds_logsplit(includeindex=True):

    print(h)

	

	

[(nan, 7.25)]

[('C85', 71.2833), (nan, 7.925)]

[('C123', 53.1), (nan, 8.05), (nan, 8.4583)]

[('E46', 51.8625), (nan, 21.075), (nan, 11.1333), (nan, 30.0708)]

[('G6', 16.7), ('C103', 26.55), (nan, 8.05), (nan, 31.275), (nan, 7.8542)]

[(nan, 16.0), (nan, 29.125), (nan, 13.0), (nan, 18.0), (nan, 7.225), (nan, 26.0)]

[('D56', 13.0), (nan, 8.0292), ('A6', 35.5), (nan, 21.075), (nan, 31.3875), (nan, 7.225), ('C23 C25 C27', 263.0)]

[(nan, 7.8792), (nan, 7.8958), (nan, 27.7208), ('B78', 146.5208), (nan, 7.75), (nan, 10.5), (nan, 82.1708), (nan, 52.0)]

[(nan, 7.2292), (nan, 8.05), (nan, 18.0), (nan, 11.2417), (nan, 9.475), (nan, 21.0), (nan, 7.8958), (nan, 41.5792), (nan, 7.8792)]

[(nan, 8.05), (nan, 15.5), (nan, 7.75), (nan, 21.6792), (nan, 17.8)]





[(0, 1)]

[(1, 2), (2, 3)]

[(3, 4), (4, 5), (5, 6)]

[(6, 7), (7, 8), (8, 9), (9, 10)]

[(10, 11), (11, 12), (12, 13), (13, 14), (14, 15)]

[(15, 16), (16, 17), (17, 18), (18, 19), (19, 20), (20, 21)]

[(21, 22), (22, 23), (23, 24), (24, 25), (25, 26), (26, 27), (27, 28)]

[(28, 29), (29, 30), (30, 31), (31, 32), (32, 33), (33, 34), (34, 35), (35, 36)]

[(36, 37), (37, 38), (38, 39), (39, 40), (40, 41), (41, 42), (42, 43), (43, 44), (44, 45)]

[(45, 46), (46, 47), (47, 48), (48, 49), (49, 50)]





[nan]

['C85', nan]

['C123', nan, nan]

['E46', nan, nan, nan]

['G6', 'C103', nan, nan, nan]

[nan, nan, nan, nan, nan, nan]

['D56', nan, 'A6', nan, nan, nan, 'C23 C25 C27']

[nan, nan, nan, 'B78', nan, nan, nan, nan]

[nan, nan, nan, nan, nan, nan, nan, nan, nan]

[nan, nan, nan, nan, nan]





[(0, nan)]

[(1, 'C85'), (2, nan)]

[(3, 'C123'), (4, nan), (5, nan)]

[(6, 'E46'), (7, nan), (8, nan), (9, nan)]

[(10, 'G6'), (11, 'C103'), (12, nan), (13, nan), (14, nan)]

[(15, nan), (16, nan), (17, nan), (18, nan), (19, nan), (20, nan)]

[(21, 'D56'), (22, nan), (23, 'A6'), (24, nan), (25, nan), (26, nan), (27, 'C23 C25 C27')]

[(28, nan), (29, nan), (30, nan), (31, 'B78'), (32, nan), (33, nan), (34, nan), (35, nan)]

[(36, nan), (37, nan), (38, nan), (39, nan), (40, nan), (41, nan), (42, nan), (43, nan), (44, nan)]

[(45, nan), (46, nan), (47, nan), (48, nan), (49, nan)]

Metadata

Release files for a-pandas-ex-logsplit 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a-pandas-ex-logsplit 0.10
File Size Uploaded Provenance Actions
a_pandas_ex_logsplit-0.10.tar.gz 4.7 kB Without provenance Details for a_pandas_ex_logsplit-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-logsplit 0.10
File Interpreter ABI Platform Actions
a_pandas_ex_logsplit-0.10-py3-none-any.whl Python 3 none any Details for a_pandas_ex_logsplit-0.10-py3-none-any.whl

Total release size: 11.2 kB

Release files / a_pandas_ex_logsplit-0.10.tar.gz

Download URL a_pandas_ex_logsplit-0.10.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
adb1bab69923a519d13f857fdab6af84b9db2a6ced0293363352e7fb707287f6
BLAKE2b-256 checksum
How to use checksums
a565d2d5e42fc50d0a25af4bf3db4973018e56ce618437138c0f8bad644a1506
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_logsplit-0.10-py3-none-any.whl

Download URL a_pandas_ex_logsplit-0.10-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0f3189fadcfba072bd9d5e6bede5b0f89926aa32be9abb973dede2b9d946243
BLAKE2b-256 checksum
How to use checksums
1f2770b09b07fed06b904ca82028253100ed2d7f198b5a2a90d32db613b52cad
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-logsplit 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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page