scicloj/tablecloth

Dataset manipulation library built on the top of tech.ml.dataset

What it solves

Tablecloth provides a user-friendly, consistent interface for manipulating datasets in Clojure. It acts as a layer on top of the tech.ml.dataset library, reorganizing its functions to make common data-wrangling tasks—like filtering, grouping, and aggregating—more intuitive and easier to chain together.

How it works

It simplifies data manipulation by providing a single, unified API where the dataset is always the first argument, making it compatible with Clojure's thread-first (->) macro. It treats regular datasets and grouped datasets similarly, allowing you to perform operations on both with the same functions. When you group data, Tablecloth creates a special dataset structure that keeps the subsets organized as a column, which can then be processed further.

Who it’s for

This library is designed for Clojure developers working with data who want a more ergonomic, R-like experience (similar to dplyr or tidyr) when using the tech.ml.dataset ecosystem.

Highlights

  • Provides a consistent, single-entry-point API for dataset operations.
  • Designed for seamless integration with Clojure's thread-first syntax.
  • Supports grouped datasets, allowing operations to be applied across subsets of data.
  • Functions are built to be intuitive, with complex parameters handled via simple maps.
  • Serves as a lightweight addition to tech.ml.dataset rather than a replacement.

Related

  • Project
  • Project
  • Project
  • Project
  • Project