Open source · MIT · Made for .NET

Official Squirrel logo

Squirrel

Data pipelines that read like specifications.

Load, clean, analyze, and visualize data in C# and F# — without losing the story in the syntax. Expressive for you. Easy to work on with your AI assistant.

var customers = DataAcquisition.LoadCsv("customers.csv")
    .NormalizeColumn("name", NormalizationStrategy.NameCase)
    .RemoveIncompleteRows();

From the .NET community

“Squirrel is a joy to use.”
Scott Hanselman

Scott Hanselman

Partner Program Manager, Microsoft

“Squirrel is executable business specification.”
Brad Jolicoeur

Brad Jolicoeur

Managing Director, Application Platform, Derivative Path

English in. Readable C# out.

Describe it in English. Ship the code.

Clear method names give you and your AI assistant a shared vocabulary. Start with a real task. Review the pipeline. Make it yours.

01 / The prompt

Use C# and Squirrel. Load customers.csv, keep ages between 18 and 120, title-case names, and remove rows with missing values. Use the documented API and explain the assumptions.

Bring your own assistant: ChatGPT, Claude, Gemini, or your preferred model.

02 / Example pipeline
using Squirrel;

var customers = DataAcquisition.LoadCsv("customers.csv")
    .RemoveIfNotBetween("age", 18, 120)
    .NormalizeColumn("name", NormalizationStrategy.NameCase)
    .RemoveIncompleteRows();

customers.PrettyDump();

Load → validate → normalize → clean

Illustrative prompts and pipelines, not live AI output. Check generated code against the API and test it with your data.

The intent stays in the code

Less deciphering. More understanding.

  1. 01Load the customer file.
  2. 02Keep ages between 18 and 120.
  3. 03Normalize names into name case.
  4. 04Remove rows with missing values.

C# / Squirrel

var customers = DataAcquisition.LoadCsv("customers.csv")
    .RemoveIfNotBetween("age", 18, 120)
    .NormalizeColumn("name", NormalizationStrategy.NameCase)
    .RemoveIncompleteRows();
Capabilities

Readable by humans. Friendly to AI.

Executable Specifications

Every function name is a plain-English verb. RemoveIfNotBetween, NormalizeColumn, RemoveIncompleteRows — pipelines read the way you'd describe them in a spec doc.

var cleanData = messyData
    .RemoveIfNotBetween("age", 18, 120)
    .NormalizeColumn("name",
        NormalizationStrategy.NameCase)
    .RemoveIncompleteRows();
LLM-native

Clear names. Better AI context.

Self-documenting names help AI assistants draft readable Squirrel pipelines. Give your model the API, then review assumptions and test the result.

Charts

Google DataViz & more.

Cross-Platform

Runs identically on Linux, Windows, and macOS. .NET Standard 2.0.

LINWINMAC

Capable where it counts.

Optimized for the tiny-to-medium datasets most businesses actually work with — 100k rows in under a second. Fast enough to disappear; readable enough to trust.

Loaders & Sinks

CSV, TSV, Parquet, HTML tables, SQL Server, MongoDB, anonymous types. One DataAcquisition surface.

The Squirrel toolkit

From raw data to a clearer picture.

Model, acquire, clean, analyze, visualize, and mask—expressed in the language of the task.

01 / Model

Mathematical modeling

Turn formulas into datasets. Build calculated columns and time-series models for scientific and financial questions.

Modeling.cs

// Turn a time series into a formula
var model = new Table();
model.AddColumn("Time", Enumerable.Range(1, 60)
    .Select(t => t.ToString()).ToList());
model.AddColumn("X",
    "Sqrt(9.81*0.25/68.1)*[Time]", 4);
02 / Acquire

Multi-source data

Bring CSV, HTML tables, Parquet, and in-memory objects into the same table-based workflow. Export results back to CSV.

DataSources.cs

// Different sources. One familiar workflow.
var csv = DataAcquisition.LoadCsv("data.csv");
var web = DataAcquisition.LoadHtml(tableHtml);
var parquet = DataAcquisition
    .LoadParquet("archive.parquet");
csv.ToCsv("export.csv");
03 / Clean

Smart data cleaning

Remove outliers, normalize names, validate ranges, and handle incomplete rows. Keep each decision visible in the pipeline.

Cleaning.cs

// A checklist your team can read
var cleaned = rawData
    .RemoveOutliers("price")
    .RemoveIfNotBetween("age", 18, 120)
    .NormalizeColumn("name",
        NormalizationStrategy.NameCase)
    .RemoveIncompleteRows();
04 / Analyze

Statistical analysis

Explore median, range, standard deviation, and kurtosis. Inspect a table summary and isolate unusual values for closer investigation.

Statistics.cs

// Look at the summary, then the exceptions
var data = DataAcquisition
    .LoadCsv("sales.csv");
var summary = data.Gist();
var outliers = data
    .ExtractOutliers("revenue");
05 / Visualize

Rich visualizations

Take a readable pipeline through to a chart using connectors such as Google Data Visualization, without leaving your .NET workflow.

Visualization.cs

// Give your numbers a visual story
var revenue = DataAcquisition
    .LoadCsv("revenue.csv")
    .RemoveIncompleteRows();
var chart = revenue
    .ToBarChartByGoogleDataVisualization(
        "revenue", "region", "Revenue by region");
06 / Mask

Sensitive-data masking

Apply an explicit masking strategy to sensitive columns before sharing results. Masking is one step in your privacy process—not a compliance guarantee.

Masking.cs

// Keep only the last four characters visible
var customers = DataAcquisition
    .LoadCsv("customers.csv");
var masked = customers
    .MaskColumn("ssn",
        MaskingStrategy.StarExceptLastFour);
Install

One command. Zero setup.

$ dotnet add package TableAPI

using Squirrel;  ·  open Squirrel (F#)

Data Analytics with C#: A Practical Guide with Squirrel by Sudipta Mukherjee, published by Apress, with forewords by Scott Hanselman and Brad Jolicoeur

The official book · Apress

Data Analytics with C#

A Practical Guide with Squirrel

By Sudipta Mukherjee

A hands-on guide to expressive analytics pipelines in .NET — acquisition, cleaning, transformation, modeling, and visualization through real projects.

With forewords by

Scott Hanselman & Brad Jolicoeur

View on Amazon

A conversation, not a sales pitch

Your data questions. A Squirrel demo.

Curious how Squirrel fits your .NET workflow? Ask the maintainer for a walkthrough of cleaning messy data, building a readable pipeline, or working with an AI assistant.

Real workflows Questions welcome No sales deck
Schedule a demo

A 30-minute conversation with the maintainer. Find a time that works for you on Calendly.

Built in the open. Better together.

Useful to you? Pass it on.

Squirrel is free and MIT-licensed. There’s nothing to unlock and no subscription to start. Support is always optional.

Give a little. Keep it growing.

If Squirrel helps you, a voluntary donation supports the time behind maintenance, documentation, and new examples.

Donate via GitHub Sponsors

Help the next developer find it.

Star the repository, share a pipeline, or tell your .NET community what you built. Small signals go a long way.

Star Squirrel on GitHub

Leave it better than you found it.

A bug report, a clearer example, or a documentation improvement — every contribution makes Squirrel more useful.

Explore open issues

A few things worth knowing

Before you dive in.

Is Squirrel really free?

Yes. The library is open source under the MIT license, including commercial use under that license. GitHub sponsorship is completely voluntary.

Why is the NuGet package called TableAPI?

Squirrel is the framework name; TableAPI is its NuGet package. Install with dotnet add package TableAPI, then import the Squirrel namespace with using Squirrel; in C#.

Do I need an AI subscription?

No. Squirrel is a .NET library you can use directly. AI assistants are an optional way to draft pipelines; always review and test the code they produce.

What kind of data is it a good fit for?

Squirrel focuses on expressive, readable analysis of small-to-medium datasets in .NET. Start with a representative sample of your own data and explore the repository’s runnable projects.

Pipelines that read like specs.

Install once. Write pipelines you'll still understand next quarter. Let your LLM do the same.