{"id":17465020,"url":"https://github.com/erdogant/df2onehot","last_synced_at":"2026-02-21T01:11:55.686Z","repository":{"id":62567957,"uuid":"245003302","full_name":"erdogant/df2onehot","owner":"erdogant","description":"Convert a unstructured array into a stuctured dataframe.","archived":false,"fork":false,"pushed_at":"2025-04-25T09:32:07.000Z","size":6989,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-10T18:08:28.210Z","etag":null,"topics":["onehot-encoding","preprocessing","python","structuring"],"latest_commit_sha":null,"homepage":"https://erdogant.github.io/df2onehot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erdogant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["erdogant"],"buy_me_a_coffee":"erdogant","ko_fi":"erdogant","custom":["https://erdogant.github.io/df2onehot/pages/html/Documentation.html"],"patreon":null,"open_collective":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null}},"created_at":"2020-03-04T21:02:27.000Z","updated_at":"2025-04-25T09:32:10.000Z","dependencies_parsed_at":"2025-04-13T19:41:52.262Z","dependency_job_id":"cfa4e2c6-2c8b-46a6-8883-40dc8f66094d","html_url":"https://github.com/erdogant/df2onehot","commit_stats":{"total_commits":95,"total_committers":2,"mean_commits":47.5,"dds":"0.12631578947368416","last_synced_commit":"cff313436bbf2b106052b4823e1408480b6e32c3"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/erdogant/df2onehot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fdf2onehot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fdf2onehot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fdf2onehot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fdf2onehot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdogant","download_url":"https://codeload.github.com/erdogant/df2onehot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fdf2onehot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29670123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["onehot-encoding","preprocessing","python","structuring"],"created_at":"2024-10-18T11:08:29.435Z","updated_at":"2026-02-21T01:11:55.665Z","avatar_url":"https://github.com/erdogant.png","language":"Python","funding_links":["https://github.com/sponsors/erdogant","https://buymeacoffee.com/erdogant","https://ko-fi.com/erdogant","https://erdogant.github.io/df2onehot/pages/html/Documentation.html","https://www.buymeacoffee.com/erdogant)--","https://www.buymeacoffee.com/erdogant"],"categories":[],"sub_categories":[],"readme":"# df2onehot\n\n[![Python](https://img.shields.io/pypi/pyversions/df2onehot)](https://img.shields.io/pypi/pyversions/df2onehot)\n[![PyPI Version](https://img.shields.io/pypi/v/df2onehot)](https://pypi.org/project/df2onehot/)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/df2onehot/blob/master/LICENSE)\n[![Downloads](https://pepy.tech/badge/df2onehot/month)](https://pepy.tech/project/df2onehot/month)\n[![Downloads](https://pepy.tech/badge/df2onehot)](https://pepy.tech/project/df2onehot)\n[![DOI](https://zenodo.org/badge/245003302.svg)](https://zenodo.org/badge/latestdoi/245003302)\n[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/df2onehot/)\n\u003c!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)--\u003e\n\u003c!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD\u0026amount=5)--\u003e\n\n``df2onehot`` is a Python package to convert unstructured DataFrames into structured dataframes, such as one-hot dense arrays.\n\n# \n**⭐️ Star this repo if you like it ⭐️**\n#\n\n#### Install df2onehot from PyPI\n\n```bash\npip install df2onehot\n```\n\n#### Import df2onehot package\n\n```python\nfrom df2onehot import df2onehot\n```\n# \n\n\n### [Documentation pages](https://erdogant.github.io/df2onehot/)\n\nOn the [documentation pages](https://erdogant.github.io/df2onehot/) you can find detailed information about the working of the ``df2onehot`` with many examples. \n\n\u003chr\u003e \n\n### Examples\n\n```python\nresults = df2onehot(df)\n```\n\n```python\n# Force features (int or float) to be numeric if unique non-zero values are above percentage.\nout = df2onehot(df, perc_min_num=0.8)\n```\n\n```python\n# Remove categorical features for which less then 2 values exists.\nout = df2onehot(df, y_min=2)\n```\n\n```python\n# Combine two rules above.\nout = df2onehot(df, y_min=2, perc_min_num=0.8)\n```\n\n\n# \n* [Example: Process Mixed dataset](https://erdogant.github.io/df2onehot/pages/html/Examples.html#)\n# \n* [Example: Extracting nested columns](https://erdogant.github.io/df2onehot/pages/html/Examples.html#extracting-nested-columns)\n# \n* [Example: Setting custom dtypes](https://erdogant.github.io/df2onehot/pages/html/Examples.html#custom-dtypes)\n#\n\n\u003chr\u003e\n\n#### Maintainers\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\n* Contributions are welcome.\n* If you wish to buy me a \u003ca href=\"https://www.buymeacoffee.com/erdogant\"\u003eCoffee\u003c/a\u003e for this work, it is very appreciated :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fdf2onehot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdogant%2Fdf2onehot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fdf2onehot/lists"}