{"id":49568017,"url":"https://github.com/jordandelbar/feature-engineering-polars","last_synced_at":"2026-05-03T12:13:26.974Z","repository":{"id":149228806,"uuid":"618138833","full_name":"jordandelbar/feature-engineering-polars","owner":"jordandelbar","description":"Feature engineering done with Polars","archived":false,"fork":false,"pushed_at":"2023-12-07T21:17:37.000Z","size":96,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-08T21:17:58.065Z","etag":null,"topics":["data-science","feature-engineering","machine-learning","polars","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jordandelbar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-23T20:43:35.000Z","updated_at":"2024-04-19T01:29:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"afd49b9d-0289-48b6-956b-5cf2373d4bf9","html_url":"https://github.com/jordandelbar/feature-engineering-polars","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jordandelbar/feature-engineering-polars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordandelbar%2Ffeature-engineering-polars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordandelbar%2Ffeature-engineering-polars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordandelbar%2Ffeature-engineering-polars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordandelbar%2Ffeature-engineering-polars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordandelbar","download_url":"https://codeload.github.com/jordandelbar/feature-engineering-polars/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordandelbar%2Ffeature-engineering-polars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32568259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["data-science","feature-engineering","machine-learning","polars","python"],"created_at":"2026-05-03T12:13:26.403Z","updated_at":"2026-05-03T12:13:26.965Z","avatar_url":"https://github.com/jordandelbar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feature Engineering with Polars\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/feature-engineering-polars?logo=Python)](https://pypi.org/project/feature-engineering-polars/)\n[![GitHub](https://img.shields.io/github/license/jordandelbar/feature-engineering-polars)](https://github.com/jordandelbar/feature-engineering-polars/blob/main/LICENSE.md)\n[![codecov](https://codecov.io/gh/jordandelbar/feature-engineering-polars/branch/main/graph/badge.svg?token=TUKAPUHHEV)](https://codecov.io/gh/jordandelbar/feature-engineering-polars)\n\nFeature engineering done with Polars\n\n![fe-polars](https://user-images.githubusercontent.com/35341015/229273836-9f87fd67-2011-4aa9-a7d8-680795d75259.png)\n\n## How to install\n\n```bash\npip install feature-engineering-polars\n```\n\n## How to use it\n\n```python\nimport polars as pl\nfrom fe_polars.imputing.base_imputing import Imputer\nfrom fe_polars.encoding.target_encoding import TargetEncoder\n\ndataframe = pl.DataFrame(\n        {\n            \"City\": [\"A\", \"A\", \"B\", \"B\", \"B\", \"C\", \"C\", \"C\"],\n            \"Rain\": [103, None, 90, 75, None, 200, 155, 127],\n            \"Temperature\": [30.5, 32, 25, 38, 40, 29.6, 21.3, 24.9],\n        }\n    )\n\nimputer = Imputer(features_to_impute=[\"Rain\"], strategy=\"mean\")\nencoder = TargetEncoder(smoothing=2, features_to_encode=[\"City\"])\n\ntemp = imputer.fit_transform(x=dataframe)\nencoder.fit_transform(x=temp, y=dataframe['Temperature'])\n\n\nshape: (8, 3)\nCity    Temperature Rain\nf64     f64         f64\n\n30.706  30.5        103.0\n30.706  32.0        125.0\n32.665  25.0        90.0\n32.665  38.0        75.0\n32.665  40.0        125.0\n27.225  29.6        200.0\n27.225  21.3        155.0\n27.225  24.9        127.0\n```\n\n## Available transformers\n\n- Encoding:\n  - Target encoding\n  - One hot encoding\n- Imputing:\n  - Base imputing:\n    - Mean imputing\n    - Median imputing\n    - Max imputing\n    - Min imputing\n    - Fixed value imputing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordandelbar%2Ffeature-engineering-polars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordandelbar%2Ffeature-engineering-polars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordandelbar%2Ffeature-engineering-polars/lists"}