registers pyarrow-compute function as expressions to pc namespace
Project description
Polars-pc
Registers pyarrow-compute functions to expressions namespace under "pc". This isn't a rust port, it just calls them as they are with map_batches. All the methods that only have a single input are dynamically loaded. For instance:
df.with_columns(c=pl.col('a').pc.cumulative_sum())
Methods which take two inputs are statically loaded, right now only index_in is loaded and that works like
df.with_columns(c=pl.col('a').pc.index_in('b'))
Install
pip install polars-pc
Usage
import polars_pc
import polars as pl
df=pl.DataFrame({
'a':[1,2,2,3,4],
'b':[1,1,1,3,3]
})
df.with_columns(c=pl.col('a').pc.cumulative_sum())
df.with_columns(c=pl.col('a').pc.index_in('b'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polars_pc-0.0.2.tar.gz.
File metadata
- Download URL: polars_pc-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc7e618e1c099805661220a4dd0c4340182abb5e912b97cf69eb21d2155f77ec
|
|
| MD5 |
878fb6e2ee80ddd89686dbd80afb9e4b
|
|
| BLAKE2b-256 |
0ea1edac7410ac960b80676607c928450ab6af60fa92f5a38a5e67b4639d736e
|
File details
Details for the file polars_pc-0.0.2-py3-none-any.whl.
File metadata
- Download URL: polars_pc-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fec122ec8a8d6756505c7682f5f4284f4344e6ada83ccb051af16a0d7265d97e
|
|
| MD5 |
bd2595275406043c89f46f47c4a0b7ff
|
|
| BLAKE2b-256 |
574f5680afbebae90dc8afb4abfcefffa96aae83a704ebaf4247f71829b5ef42
|