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.0.8.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

df2onehot-1.0.8-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: df2onehot-1.0.8.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for df2onehot-1.0.8.tar.gz
Algorithm Hash digest
SHA256 a14c1ee953d86149af4368302e03aa2037c96f683fbe699e5fa6854f6a1c99af
MD5 cef6d8ef5ec781e16bacb49581247407
BLAKE2b-256 28339f346374ee2b5a97b6d30be90564a9df985b3ae00b95239118d222c1b823

See more details on using hashes here.

File details

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

File metadata

  • Download URL: df2onehot-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for df2onehot-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3a4686479adb66b29b94ea53b2684dea654bcd0203c18797b3a2ae1bedd79d84
MD5 becdef4782e8c96e1cf4504eff489d4a
BLAKE2b-256 8759102bc029e1b633e813de17c4a3c8f4bca1e1290489efba10f4a86897c30d

See more details on using hashes here.

Supported by

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