{"id":13439095,"url":"https://github.com/kernelmachine/utah","last_synced_at":"2025-10-11T06:06:26.168Z","repository":{"id":71432418,"uuid":"68559166","full_name":"kernelmachine/utah","owner":"kernelmachine","description":"Dataframe structure and operations in Rust","archived":false,"fork":false,"pushed_at":"2018-07-24T18:22:54.000Z","size":4933,"stargazers_count":145,"open_issues_count":1,"forks_count":14,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-10T14:20:42.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/kernelmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null}},"created_at":"2016-09-19T01:44:52.000Z","updated_at":"2025-09-27T08:35:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8e6ca0c-d1d6-4c05-b136-95d816ba614e","html_url":"https://github.com/kernelmachine/utah","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kernelmachine/utah","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmachine%2Futah","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmachine%2Futah/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmachine%2Futah/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmachine%2Futah/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelmachine","download_url":"https://codeload.github.com/kernelmachine/utah/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmachine%2Futah/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006448,"owners_count":26084105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-07-31T03:01:11.091Z","updated_at":"2025-10-11T06:06:26.154Z","avatar_url":"https://github.com/kernelmachine.png","language":"Rust","readme":"# Utah\n\n[![Build Status](https://travis-ci.org/pegasos1/utah.svg?branch=master)](https://travis-ci.org/pegasos1/utah)\n\n[**Utah**](http://crates.io/crates/utah) is a Rust crate backed by [ndarray](https://github.com/bluss/rust-ndarray) for type-conscious, tabular data manipulation with an expressive, functional interface.\n\n**Note**: This crate works on stable. However, if you are working with dataframes with `f64` data, use nightly, because you will get the performance benefits of specialization. \n\nAPI currently in development and subject to change.\n\nFor an in-depth introduction to the mechanics of this crate, as well as future goals, read [this](http://kernelmachine.github.io/2016/12/28/Introducing-Utah/) blog post.\n\n## Install\n\nAdd the following to your `Cargo.toml`:\n\n```\nutah=\"0.1.2\"\n```\n\nAnd add the following to your `lib.rs` or `main.rs`\n\n```\n#[macro_use]\nextern crate utah\n```\n## Documentation\n\nCheck out [docs.rs](http://docs.rs/utah) for latest documentation. \n\n## Examples\n\n\n#### Create dataframes on the fly\n\n```rust\nuse utah::prelude::*;\nlet df = DataFrame\u003cf64\u003e = dataframe!(\n    {\n        \"a\" =\u003e  col!([2., 3., 2.]),\n        \"b\" =\u003e  col!([2., NAN, 2.])\n    });\n\nlet a = arr2(\u0026[[2.0, 7.0], [3.0, 4.0]]);\nlet df : Result\u003cDataFrame\u003cf64\u003e\u003e = DataFrame::new(a).index(\u0026[\"1\", \"2\"]);\n```\n\n#### Transform the dataframe\n\n```rust\nuse utah::prelude::*;\nlet df: DataFrame\u003cf64\u003e = DataFrame::read_csv(\"test.csv\").unwrap();       \nlet res : DataFrame\u003cf64\u003e = df.remove(\u0026[\"a\", \"c\"], UtahAxis::Column).as_df()?;\n```\n\n#### Chain operations\n\n```rust\nuse utah::prelude::*;\nlet df: DataFrame\u003cf64\u003e = DataFrame::read_csv(\"test.csv\").unwrap();       \nlet res : DataFrame\u003cf64\u003e = df.df_iter(UtahAxis::Row)\n                                     .remove(\u0026[\"1\"])\n                                     .select(\u0026[\"2\"])\n                                     .append(\"8\", new_data.view())\n                                     .sumdf()\n                                     .as_df()?;\n```\n\n#### Support mixed types\n\n```rust\nuse utah::prelude::*;\nlet a = DataFrame\u003cInnerType\u003e = dataframe!(\n    {\n        \"name\" =\u003e  col!([InnerType::Str(\"Alice\"),\n                            InnerType::Str(\"Bob\"),\n                            InnerType::Str(\"Jane\")]),\n        \"data\" =\u003e  col!([InnerType::Float(2.0),\n                            InnerType::Empty(),\n                            InnerType::Float(3.0)])\n    });\nlet b: DataFrame\u003cInnerType\u003e = DataFrame::read_csv(\"test.csv\").unwrap();\nlet res : DataFrame\u003cInnerType\u003e = a.concat(\u0026b).as_df()?;\n```\n","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库","others"],"sub_categories":["Data processing","数据处理 Data processing","数据处理"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelmachine%2Futah","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelmachine%2Futah","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelmachine%2Futah/lists"}