Python package df2onehot is to convert a pandas dataframe into a stuctured dataframe.
Project description
df2onehot
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
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(14.1 kB
view details)
Built Distribution
df2onehot-1.0.3-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file df2onehot-1.0.3.tar.gz
.
File metadata
- Download URL: df2onehot-1.0.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679a76e7cc49c990fb80cbe578d21475ef408c99ec0610832c770b031a5bc552 |
|
MD5 | 2c4936f6ef0d6f394b2e0058f8f55433 |
|
BLAKE2b-256 | dd3a803bee79885aaf16b7df20ccf7ec2e837d3fbe0f9c65d64b1b2fad39d86e |
File details
Details for the file df2onehot-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: df2onehot-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60e5bca4682590b23fe4946f14622def00c68a11d15d8a23d2d432fbf5528fd5 |
|
MD5 | bac664e2b560a8fc59aa3ac0b5a4b025 |
|
BLAKE2b-256 | 5394f832afe04680c4b4b22c5eff34aada4ebe6d717270ae0b5973b88f80f056 |