
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
polist
)polist
is a Python package that provides a set of utilities for working with List-type columns in Polars DataFrames, especially for signal processing and feature extraction.
So far these utilities comprise those that I found to be missing or lacking from the List namespace within the Polars library while I was working on a project at work that required extensive handling of signal data which I was storing in Polars DataFrames.
By providing these utilities as a Polars plugin, and thus not having to leave the Polars DataFrame for these operations, I was able to significantly speed up the processing of my data by benefiting from Polars query optimization and parallelization. So while the operations themselves are not necessarily faster than their Numpy counterparts (although they might be in some cases), the integration with Polars gave my larger processing pipeline a significant speed boost.
Status: Work-in-Progress!
polist.apply_fft
polist.operate_scalar_on_list
add
, sub
, mul
, and div
.polist.interpolate_columns
numpy.interp
function, but for Polars DataFrames.x_data
, y_data
, and x_interp
columns to obtain the y_interp
column.polist.aggregate_list_col_elementwise
sum
, mean
, and count
.list.get(n)
(see my SO question here), but it does not scale well as for large lists and complicated queries it can lead to a stack overflow (see this issue and many others).polist.mean_of_range
list.slice
and list.mean
), but can get very complicated for the simple case of wanting to specify certain y-values based on a custom x-axis.polist.fft_freqs
pl.lit
.numpy.fft.fftfreq
function, but in my opinion much simpler.polist.fft_freqs_linspace
numpy.linspace
to create a linearly spaced List of values.pl.lit
.polist.interpolate_columns
.uv pip install polars-list-utils
uv sync --extra dev
uv run maturin develop --release
# .cargo/config.toml
[env]
PYO3_PYTHON = "C:\\Users\\travis.hammond\\AppData\\Roaming\\uv\\python\\cpython-3.12.0-windows-x86_64-none\\python.exe"
uv run ./examples/showcase_dsp.py
uvx ruff check
cargo fmt
FAQs
Utilities for working with List columns in Polars
We found that polars-list-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.