Skip to main content

df2onehot

Python PyPI Version License Downloads Downloads DOI Sphinx

df2onehot is a Python package to convert unstructured DataFrames into structured dataframes, such as one-hot dense arrays.

⭐️ Star this repo if you like it ⭐️

Install df2onehot from PyPI

pip install df2onehot

Import df2onehot package

from df2onehot import df2onehot

Documentation pages

On the documentation pages you can find detailed information about the working of the df2onehot with many examples.


Examples

results = df2onehot(df)
# Force features (int or float) to be numeric if unique non-zero values are above percentage.
out = df2onehot(df, perc_min_num=0.8)
# Remove categorical features for which less then 2 values exists.
out = df2onehot(df, y_min=2)
# Combine two rules above.
out = df2onehot(df, y_min=2, perc_min_num=0.8)


Maintainers

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

Metadata

Release files for df2onehot 1.2.3

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

Source distribution (sdist)

Source distribution for df2onehot 1.2.3
File Size Uploaded Provenance Actions
df2onehot-1.2.3.tar.gz 14.2 kB Without provenance Details for df2onehot-1.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for df2onehot 1.2.3
File Interpreter ABI Platform Actions
df2onehot-1.2.3-py3-none-any.whl Python 3 none any Details for df2onehot-1.2.3-py3-none-any.whl

Total release size: 29.0 kB

Release files / df2onehot-1.2.3.tar.gz

Download URL df2onehot-1.2.3.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4fed1bbac36dc1623ea1b3705f115fa7519980b95da728ed71350e0b72a2775e
BLAKE2b-256 checksum
How to use checksums
28d3a72a2fc595220fd22810410f79a29a5b3bc71b51c6d1bd89a08d9e57a4bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / df2onehot-1.2.3-py3-none-any.whl

Download URL df2onehot-1.2.3-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e25ea2299a0bb3e3f034ee809649ef3aefd773875d6499bb15cf1abd1a538469
BLAKE2b-256 checksum
How to use checksums
2855c59d955497bc892b8c20410377a5a5d0205f73e801f8f2cd1386acd8de0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for df2onehot 1.2.3

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

1.2.3 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