Skip to content

Instantly share code, notes, and snippets.

View ritchie46's full-sized avatar

Ritchie Vink ritchie46

View GitHub Profile
@ritchie46
ritchie46 / example.py
Last active February 23, 2023 14:47
Example of polars multithreading third party work pool
import polars as pl
import numpy as np
df = (pl.DataFrame({
"a": np.random.randint(0, 100, int(1e8))
}).groupby("a").agg(
pl.col("a").alias("list")
))
# prints