On this page:
Polars:   Racket bindings to Polars
9.2.900

Polars: Racket bindings to Polars🔗ℹ

bkc

 (require polars) package: polars

polars provides Racket bindings to the Polars DataFrame library. The bindings call into a native compatibility library (libcompat) built from the Rust polars crate; prebuilt shared objects for Linux (x86-64) and macOS (arm64) ship with the package and are installed automatically, so no Rust toolchain is required at install time.

The polars module re-exports three groups of operations:

  • Series — typed, one-dimensional columns of data.

  • Expressions — composable, lazily-evaluated column expressions used to describe transformations.

  • DataFrames and LazyFrames — tabular data and the lazy query plans that produce it.

Temporal values exchanged with Racket use gregor dates and datetimes.

This manual has two parts. The Guide is a guided, narrative tour modelled on the upstream Polars getting-started guide; the Reference documents the public API.

    1 Guide

      1.1 Series

      1.2 DataFrames

      1.3 Reading & writing

      1.4 Expressions

      1.5 Method chaining with ~>

      1.6 Combining DataFrames

    2 Reference

      2.1 Series

        2.1.1 dtype promotion

      2.2 DataFrames

        2.2.1 Low-level DataFrame API

        2.2.2 Reading & writing

      2.3 Fluent pipelines

        2.3.1 Shadowed bindings

      2.4 Generic interfaces

    3 Status