Skip to main content

Creates DataFrames from product, permutations, combinations, combinations_with_replacement with best dtype

# Tested with:
# Python 3.9.13
# Windows 10

pip install a-pandas-ex-combinatoric-iterators-to-df


from a_pandas_ex_combinatoric_iterators_to_df import pd_add_combinatoric_iterators_to_df
import pandas as pd
pd_add_combinatoric_iterators_to_df()

df1=pd.Q_product_to_df(iterable=list(range(256)), n=3)
df1
Out[3]: 

            0    1    2
0           0    0    0
1           0    0    1
2           0    0    2
3           0    0    3
4           0    0    4
       ...  ...  ...
16777211  255  255  251
16777212  255  255  252
16777213  255  255  253
16777214  255  255  254
16777215  255  255  255
[16777216 rows x 3 columns]

df1.dtypes
Out[4]: 
0    uint8
1    uint8
2    uint8
dtype: object


df2=pd.Q_permutations_to_df(iterable=list(range(256)), n=3)
df2
Out[5]: 
            0    1    2
0           0    1    2
1           0    1    3
2           0    1    4
3           0    1    5
4           0    1    6
       ...  ...  ...
16581115  255  254  249
16581116  255  254  250
16581117  255  254  251
16581118  255  254  252
16581119  255  254  253
[16581120 rows x 3 columns]


df3=pd.Q_combinations_to_df(iterable=list(range(256)), n=3)
df3
Out[6]: 
           0    1    2
0          0    1    2
1          0    1    3
2          0    1    4
3          0    1    5
4          0    1    6
      ...  ...  ...
2763515  251  254  255
2763516  252  253  254
2763517  252  253  255
2763518  252  254  255
2763519  253  254  255
[2763520 rows x 3 columns]

df4=pd.Q_combinations_with_replacement_to_df(iterable=list(range(256)), n=3)
df4
Out[7]: 
           0    1    2
0          0    0    0
1          0    0    1
2          0    0    2
3          0    0    3
4          0    0    4
      ...  ...  ...
2829051  253  255  255
2829052  254  254  254
2829053  254  254  255
2829054  254  255  255
2829055  255  255  255
[2829056 rows x 3 columns]

"""

Metadata

Release files for a-pandas-ex-combinatoric-iterators-to-df 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-combinatoric-iterators-to-df 0.10
File Size Uploaded Provenance Actions
a_pandas_ex_combinatoric_iterators_to_df-0.10.tar.gz 4.1 kB Without provenance Details for a_pandas_ex_combinatoric_iterators_to_df-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-combinatoric-iterators-to-df 0.10
File Interpreter ABI Platform Actions
a_pandas_ex_combinatoric_iterators_to_df-0.10-py3-none-any.whl Python 3 none any Details for a_pandas_ex_combinatoric_iterators_to_df-0.10-py3-none-any.whl

Total release size: 10.0 kB

Release files / a_pandas_ex_combinatoric_iterators_to_df-0.10.tar.gz

Download URL a_pandas_ex_combinatoric_iterators_to_df-0.10.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
edbbeee1b43e27aa99473b1094d4bbe2030b8246e15ce322b57fd04ffb6e13e9
BLAKE2b-256 checksum
How to use checksums
b631dc3bbcd34ed1b41dc3816978c5bd8835568979b96c6a726fc1b3c8c62e03
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_combinatoric_iterators_to_df-0.10-py3-none-any.whl

Download URL a_pandas_ex_combinatoric_iterators_to_df-0.10-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe241f0e0a5b4d9c5c70b4fd21f0ab4a3cfd45cdaa55e628b2d332cfe1a52747
BLAKE2b-256 checksum
How to use checksums
73d55b6082411ff0ad9638696e7363143aa3a0edcd1d16e2e549d4d94672a6fb
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-combinatoric-iterators-to-df 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