Skip to main content

The Library of Polars Extensions

Project description

Polars Extensions

This library is designed to extend the capabilities of polars with functionalities that are not currently found in Polars.

Social Proving Ground

Polars is written in Rust, but these extensions are created in pure python. The concept for this package is to create a social proving ground for extensions that could be added to the main polars library. Those who don't know Rust can develop functions here in Python and the best ideas can be passed on to the main polars library for development.

Usage

Case Conventions

import polars as pl
from polars_extensions import *

data = pl.read_csv('datasets/employees.csv')
data
data.name_ext.to_kebeb_case()
data.name_ext.to_train_case()
data.name_ext.to_pascal_case()
data.name_ext.to_snake_case()
data.name_ext.to_camel_case()
data.name_ext.to_pascal_snake_case()

Numeric

import polars as pl
df = pl.DataFrame({"numbers": [1, 2, 309, 4, 5]})
df
import polars_extensions as plx

result = df.with_columns(
    pl.col('numbers').num_ext.to_roman().alias("Roman")
)
result
new_result = result.with_columns(
    pl.col('Roman').num_ext.from_roman().alias("Decoded")
)
new_result

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_extensions-0.5.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

polars_extensions-0.5.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file polars_extensions-0.5.0.tar.gz.

File metadata

  • Download URL: polars_extensions-0.5.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for polars_extensions-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c9202452b83800127c54cb4aaf337be7665e8c54a81ad3b1560ce672cad840f7
MD5 becc79df6a220e48c82569674bc1a1aa
BLAKE2b-256 f200c52ada47eff8260a30bf1fa5997ecda1c389087fc717a0a8d9b0858497ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_extensions-0.5.0.tar.gz:

Publisher: python-publish.yml on jrasband-dev/polars-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polars_extensions-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for polars_extensions-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75e4764ed2b7d63c24973d577e5eda00d41457b474674cbf1af903c794841225
MD5 132d87237059892daf73493aa5c2e9bd
BLAKE2b-256 78e18df804f5f60f3f9958a35d1d9c942e46f8d41bdf8ded5cb7e697b35f8d5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_extensions-0.5.0-py3-none-any.whl:

Publisher: python-publish.yml on jrasband-dev/polars-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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