{"id":33281605,"url":"https://github.com/narwhals-dev/narwhals-daft","last_synced_at":"2026-01-30T21:33:44.364Z","repository":{"id":308743991,"uuid":"1033937171","full_name":"narwhals-dev/narwhals-daft","owner":"narwhals-dev","description":"Narwhals plugin for Daft","archived":false,"fork":false,"pushed_at":"2026-01-22T13:52:44.000Z","size":237,"stargazers_count":1,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-23T04:27:29.485Z","etag":null,"topics":[],"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/narwhals-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"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}},"created_at":"2025-08-07T15:21:49.000Z","updated_at":"2026-01-22T13:52:48.000Z","dependencies_parsed_at":"2025-08-25T17:21:56.626Z","dependency_job_id":"cfb8da20-e596-4525-9572-70f13cf4db0f","html_url":"https://github.com/narwhals-dev/narwhals-daft","commit_stats":null,"previous_names":["marcogorelli/narwhals-daft","narwhals-dev/narwhals-daft"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/narwhals-dev/narwhals-daft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narwhals-dev%2Fnarwhals-daft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narwhals-dev%2Fnarwhals-daft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narwhals-dev%2Fnarwhals-daft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narwhals-dev%2Fnarwhals-daft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narwhals-dev","download_url":"https://codeload.github.com/narwhals-dev/narwhals-daft/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narwhals-dev%2Fnarwhals-daft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28919658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"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":[],"created_at":"2025-11-17T13:04:28.025Z","updated_at":"2026-01-30T21:33:44.342Z","avatar_url":"https://github.com/narwhals-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Narwhals-daft\n\nNarwhals plugin for [Daft](https://github.com/Eventual-Inc/Daft)!\n\nSee [Narwhals](https://narwhals-dev.github.io/narwhals/) for Narwhals documentation and API.\nThis plugin allows Narwhals to accept Daft inputs (in addition to all the inputs it already\naccepts).\n\n## Installation\n\n```console\npip install narwhals-daft\n```\n\n## Example\n\n```py\nimport daft\nimport narwhals as nw\nfrom narwhals.typing import IntoFrameT\n\ndata = {\n    \"animal\": [\n        \"penguin\",\n        \"dodo\",\n        \"beluga\",\n        \"narwhal\",\n        \"cat\",\n        \"dog\",\n        \"hamster\",\n        \"falcon\",\n    ],\n    \"awesomeness\": [7, 5, 8, 15, 5, 4, 3, 9],\n}\ndf_daft = daft.from_pydict(data)\ndf = nw.from_native(df_daft)\nresult = df.with_columns(\n    relative_awesomeness=nw.col(\"awesomeness\") / nw.col(\"awesomeness\").max()\n).filter(nw.col(\"relative_awesomeness\") \u003e 0.5)\nprint(result.to_native().collect())\n```\n\n```console\n╭─────────┬─────────────┬──────────────────────╮\n│ animal  ┆ awesomeness ┆ relative_awesomeness │\n│ ---     ┆ ---         ┆ ---                  │\n│ String  ┆ Int64       ┆ Float64              │\n╞═════════╪═════════════╪══════════════════════╡\n│ beluga  ┆ 8           ┆ 0.5333333333333333   │\n├╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ narwhal ┆ 15          ┆ 1                    │\n├╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ falcon  ┆ 9           ┆ 0.6                  │\n╰─────────┴─────────────┴──────────────────────╯\n\n(Showing first 3 of 3 rows)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarwhals-dev%2Fnarwhals-daft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarwhals-dev%2Fnarwhals-daft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarwhals-dev%2Fnarwhals-daft/lists"}