Polang is a simple calulator language for polars data frames.
Project description
Polang
Do not use this with untrusted input!
Polang is a simple arithmetic parser that compiles to Polars Expressions.
But Why?
My usecase is tabular data with a lot of columns that need transformation.
Usage
df = DataFrame({"a": np.linspace(0, 1), "b": np.sin(np.linspace(0, 1))})
df.select(polang("(sin(a) + b) * 3.2"))
Currently Supported Features
+ - * /- Braces
( ) - Any method of polars expressions.
Roadmap
- Macros
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
polang-0.1.0.tar.gz
(7.7 kB
view details)
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 polang-0.1.0.tar.gz.
File metadata
- Download URL: polang-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dabe3773ee7f7da3bfb812c0738b3e10fccc86d3a141ce1ed0658c036a5d3720
|
|
| MD5 |
1aac5b2da7223e2e86b3cfc57cd677c7
|
|
| BLAKE2b-256 |
d091f7b0a76ab88e14a9ab647969edada0243e947b9a34e307f44467e03640e4
|
File details
Details for the file polang-0.1.0-py3-none-any.whl.
File metadata
- Download URL: polang-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
236ae073abb9585bb5404242613fd3cd06cb09d563f6f057f2316402329cac94
|
|
| MD5 |
1421614a7a6be3eca919c7e52622873e
|
|
| BLAKE2b-256 |
21f0d5af23a1ada8f6666cdf1ea759a2ecae5e55753dc770aebfe224f7981db9
|