用 Rust 编写的用于 DataFrame 的极其快速的查询引擎
<h1对齐="中心"> <a href='https://pola.rs">(英语:ZZURL0 ZHZ) 维基语录链接:名人名言 - 文学作品 - 谚语 - 谚语
(简体中文)
(韩语)<p对齐="中心"> 文档: <a href=' https://docs.pola.rs/api/python/stable/reference/index.html">Python
<a href='https://docs.rs/polars/latest/polars/">Rust
<a href='https://pola-rs.github.io/nodejs-polars/index.html">Node.js
<a href=' https://pola-rs.github.io/r-polars/index.html">R | 代理 : <a href=' https://github.com/polars-inc/skills/tree/main/polars">Skill
<a href='https://docs.pola.rs/user-guide/misc/polars_llms/">MCP | <a href='https://docs.pola.rs/">User指南 | <a href=' https://discord.gg/4UfP5cfBE7">Discord
(中文(简体) ).□ 极地: 极快的查询引擎
极地是DataFrames的一个分析查询引擎,用Rust来写. 设计得很快 易于使用和表达。 主要特点是:
欲了解更多情况,请阅读用户指南。
□ 极地在行动
查询由表达式组成. 这个懒惰的查询被优化出框并运行进去 在所有可用核心中平行:
(原始内容存档于2019-09-29) (英语). ```python import polars as pl
df = ( pl.scan_parquet("orders.parquet") .filter(pl.col("status") == "shipped") .group_by("customer_id") .agg( pl.col("amount").sum().alias("total"), pl.len().alias("n_orders"), ) .sort("total", descending=True) .collect() )
□ 性能
极地速度非常快. 其实`Expr.interpolate` 会引发异常或默默地为非数值 dtype 留下空值
`decimal_comma` 和 `float_scientific` 的 CSV 格式不正确
在读取 csv 时忽略前导空白
具有长度为 1 的输入和全长边界的 `clip` 会默默地截短为长度 1,而不是广播
在浮点数中存在 NaN 时,会跳过拼花行
在 agg 更改顺序后,`group_by` 与 `sort_by` 的结果不正确
在聚合中使用 `group_by` 和 `sort_by` 时,结果不正确
如果窗口边界不是单调的,DataFrame.rolling 会产生不正确的结果
在与文件内谓词结合使用时,`pl.date` 与 Hive 关键字一起使用会停止分区优化
在内存中,在 groupby 上下文中针对嵌套键计算极值时,结果不正确