Collecting my attempts to improve at tech, art, and life



Fast DataFrame framework for Data Analysis


import polars as pl

Read a CSV file with Polars #process

read_csv to immediately read, like in Pandas

df = pl.read_csv(CSV_PATH)

scan_csv for lazy loading, which allows optimizations for large / fancy data files

query = pl.scan_csv(CSV_PATH)
# do your filters and transforms to the query
# then when you're ready to interact with it:
df = query.collect()

Polars Ruby

A Ruby interface to Polars

gem install polars-df

GitHub - ankane/polars-ruby: Blazingly fast DataFrames for Ruby

Added to vault 2024-05-06. Updated on 2024-05-06