Fast Polars functions that Ethan likes to use.
Project description
Features
Demean
The demean function subtracts the mean from each non-NaN value in an array, preserving NaN values.
import polars as pl
from ethanpolars import demean
# Sample data...
df = pl.DataFrame({
"value": [1.0, 2.0, 3.0, None, 5.0]
})
# Apply demean to the column...
print(df)
Output...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
polars_ethan-0.2.0.tar.gz
(2.0 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 polars_ethan-0.2.0.tar.gz.
File metadata
- Download URL: polars_ethan-0.2.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03b63312259df98a327d07e25f1c03819a98a3ad9dc23444378cbbc51d03cc68
|
|
| MD5 |
991d7183b66209c7ed1066d3c145da5c
|
|
| BLAKE2b-256 |
8aeb3ab6afcad6691bf7d76f59c93d47d560c426cbf36790a2bee390e2034d24
|
File details
Details for the file polars_ethan-0.2.0-py3-none-any.whl.
File metadata
- Download URL: polars_ethan-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5ca7621ffe97cc70a418a36b3c9acdde1f3d8df6385738e80d81d7c74819802
|
|
| MD5 |
701a9374de13d32f7d1d06ae3b0eb561
|
|
| BLAKE2b-256 |
6333afa62922bd8d1c280a9f98e75c6c77904a253fdd5920c67642c058b17fc9
|