https://github.com/dashdeckers/polars_list_utils
Polars Plugin for List-type Columns
https://github.com/dashdeckers/polars_list_utils
polars polars-dataframe py-polars rust
Last synced: 3 months ago
JSON representation
Polars Plugin for List-type Columns
- Host: GitHub
- URL: https://github.com/dashdeckers/polars_list_utils
- Owner: dashdeckers
- Created: 2025-02-24T23:20:08.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T22:14:35.000Z (3 months ago)
- Last Synced: 2025-02-27T22:55:23.456Z (3 months ago)
- Topics: polars, polars-dataframe, py-polars, rust
- Language: Rust
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-polars - polars_list_utils - Polars extension that provides a set of utilities for working with List-type columns in Polars DataFrames by [@dashdeckers](https://github.com/dashdeckers). (Libraries/Packages/Scripts / Polars plugins)
README
# Polars List Utils (`polist`)
`polist` is a Python package that provides a set of utilities for working with List-type columns in Polars DataFrames.
Status: Work-in-Progress!
## Features
- `dsp` - Basic digital signal processing including Fast Fourier Transform (FFT), windowing, and Butterworth filtering
- `agg` - Elementwise aggregations for List-type columns (currently sum, mean and count)
- `feat` - Feature extraction for List-type columns, currently only mean_of_range## Installation (user)
```bash
uv pip install polars-list-utils
```## Installation (developer)
1) Setup your Python environment according to the pyproject.toml file
2) Setup your Rust environment
3) Compile:```bash
uv sync
uv run maturin develop --release
```4) Run:
```bash
uv venv
.venv\Scripts\activate
python .\scripts\showcase_fft.py
```5) Maybe configure Cargo to find uv Pythons. For example:
```
# .cargo/config.toml
[env]
PYO3_PYTHON = "C:\\Users\\travis.hammond\\AppData\\Roaming\\uv\\python\\cpython-3.12.0-windows-x86_64-none\\python.exe"
```## Todo
- Add more features
- Add more tests