Skip to main content

Python package df2onehot is to convert a pandas dataframe into a stuctured dataframe.

Project description

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 :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

df2onehot-1.2.3.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

df2onehot-1.2.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file df2onehot-1.2.3.tar.gz.

File metadata

  • Download URL: df2onehot-1.2.3.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for df2onehot-1.2.3.tar.gz
Algorithm Hash digest
SHA256 4fed1bbac36dc1623ea1b3705f115fa7519980b95da728ed71350e0b72a2775e
MD5 04b6e84a22091831a11f62d63b4c6257
BLAKE2b-256 28d3a72a2fc595220fd22810410f79a29a5b3bc71b51c6d1bd89a08d9e57a4bf

See more details on using hashes here.

File details

Details for the file df2onehot-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: df2onehot-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for df2onehot-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e25ea2299a0bb3e3f034ee809649ef3aefd773875d6499bb15cf1abd1a538469
MD5 d0fcadb333880b7aa4c338f73bb00e4b
BLAKE2b-256 2855c59d955497bc892b8c20410377a5a5d0205f73e801f8f2cd1386acd8de0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page