Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polars_ethan-0.2.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for polars_ethan-0.2.0.tar.gz
Algorithm Hash digest
SHA256 03b63312259df98a327d07e25f1c03819a98a3ad9dc23444378cbbc51d03cc68
MD5 991d7183b66209c7ed1066d3c145da5c
BLAKE2b-256 8aeb3ab6afcad6691bf7d76f59c93d47d560c426cbf36790a2bee390e2034d24

See more details on using hashes here.

File details

Details for the file polars_ethan-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for polars_ethan-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ca7621ffe97cc70a418a36b3c9acdde1f3d8df6385738e80d81d7c74819802
MD5 701a9374de13d32f7d1d06ae3b0eb561
BLAKE2b-256 6333afa62922bd8d1c280a9f98e75c6c77904a253fdd5920c67642c058b17fc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page