xan is a command line tool for working with CSV files directly from a terminal. It can preview, filter, slice, aggregate, sort and join CSV data, and its commands can be chained together for common data tasks. It is aimed at people who analyse tabular web data, especially researchers in the social sciences.
The tool is written in Rust and is built to handle very large files, including files several gigabytes in size, using a SIMD-based CSV parser and multithreading for some computations. It also includes its own expression language for tasks that the simpler commands cannot handle. The project began as a fork of BurntSushi's xsv and was largely rewritten by the medialab at Sciences Po. It is released under the Unlicense or MIT license, and the source code is public on GitHub.
Alternatives to xan
Products that do a similar job in Data & Analytics.
OctoSQL
command-line SQL engine for joining files and databases
YouPlot
Command line tool that draws plots in the terminal from CSV and TSV data
SnowSQL
Command-line client for running SQL against Snowflake
Tad
Desktop viewer for exploring and analyzing tabular data
ParaView
Open-source application for analysing and visualising scientific data
sql-pipe
command-line tool that runs SQL queries over CSV piped from stdin
Polars
DataFrame library for fast data processing in Python and Rust
VisiData
Terminal spreadsheet for exploring and reshaping tabular data