| Crates.io | polars-qf |
| lib.rs | polars-qf |
| version | 0.1.0 |
| created_at | 2025-01-04 14:18:57.501959+00 |
| updated_at | 2025-01-04 14:18:57.501959+00 |
| description | A quant factor plugin for polars. |
| homepage | |
| repository | https://github.com/cyber-zhs/polars-qf |
| max_upload_size | |
| id | 1503948 |
| size | 45,570 |
Add technical analysis and quant factor to polars.
import polars as pl
import polars_qf as qf
# avoid `qf` unused warnings
assert qf
val = [2.222, 4.444, 5.555, 6.666, 7.777]
df = pl.DataFrame([pl.Series("S", val)])
expr = pl.col("S").qf.rd(1)
df = df.select(expr)
not support yet, but in planning.
TODO