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

Uploaded Source

Built Distribution

df2onehot-1.0.6-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: df2onehot-1.0.6.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.5

File hashes

Hashes for df2onehot-1.0.6.tar.gz
Algorithm Hash digest
SHA256 fb531fa90ba4ae60e38e8b1bc00cc2fcafe304bc1e5b81ec56db2c8b680ebeb6
MD5 28ef4bf3e25ae3eb43e54a33a7687273
BLAKE2b-256 da363a39c293547ef7c49c59221b5ee7908dc710b2be3b07d6ed87599ef9d7fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: df2onehot-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.5

File hashes

Hashes for df2onehot-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 35bd62cb4e28ad8895163a536535ae6fc6f171e0ee7efe090b761c664aa5b87b
MD5 0efd174249947ab03c438884986fe041
BLAKE2b-256 ab5c59b89ed9f48a5572e7edf9b13ca7fe31e85ca1e30d9a3ff9b26da9938f25

See more details on using hashes here.

Supported by

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