Index of every page on this site: llms.txt
All skills
Run it yourself

High-performance DataFrame library usage. Covers Lazy API, Wrangling, Aggregation.

  • 3 files
  • 3.3 KB
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/yonesuke/skills/polars

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

examples.md

≈344 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Polars Examples

Data manipulation with Polars (Lazy & Eager).

1. Wrangling & Aggregation

Demonstrates core workflow: Lazy API, Filtering, Columns, GroupBy, and Window Functions.

Source: scripts/demo.py

# /// script
# requires-python = ">=3.12"
# dependencies = ["polars", "pandas", "numpy"]
# ///

import polars as pl
import numpy as np
import datetime

def main():
    print("Running Polars Data Wrangling Demo")

    # 1. Create DataFrame
    df = pl.DataFrame({
        "id": [1, 2, 3, 4, 1, 2],
        "category": ["A", "B", "A", "B", "A", "B"],
        "value": [10.5, 20.0, 15.5, 7.5, 12.0, 18.0],
        "date": [datetime.date(2023, 1, 1) + datetime.timedelta(days=i) for i in range(6)]
    })

    # 2. Lazy Operations / Method Chaining
    q = (
        df.lazy()
        .filter(pl.col("value") > 10)
        .with_columns(
            (pl.col("value") * 1.1).alias("value_with_tax"),
            pl.col("date").dt.month().alias("month")
        )
        .group_by("category")
        .agg(
            pl.len().alias("count"),
            pl.col("value").sum().alias("total_value"),
            pl.col("value_with_tax").mean().alias("avg_taxed_value")
        )
        .sort("total_value", descending=True)
    )

    # 3. Execution
    result = q.collect()
    print(result)

if __name__ == "__main__":
    main()

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 1e23d34. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 10 months ago

README badge

README badge for yonesuke/skills/polars