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.4

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.4
File Size Uploaded Provenance Actions
df2onehot-1.2.4.tar.gz 14.8 kB Without provenance Details for df2onehot-1.2.4.tar.gz

Built distribution (wheel)

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

Total release size: 30.1 kB

Release files / df2onehot-1.2.4.tar.gz

Download URL df2onehot-1.2.4.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fe8023014d6a6266a9d869d81e000cbc61b769576fffb7d34eabe851b6943e82
BLAKE2b-256 checksum
How to use checksums
c954feacf5feb15183c97a31412ef55cf17c3ef27ee765799942eba3d9a215df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL df2onehot-1.2.4-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b174a82b41fbc7da222861d6045d068ee9ccd02c96041e85a10c41a3e7cc2f40
BLAKE2b-256 checksum
How to use checksums
1e0892ea1a26e436f248ff9f70f7b4a7d4af2e9c276287fafce1a730a9c5bab3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for df2onehot 1.2.4

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.4 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