Skip to main content

eastat

CSV column statistics powered by Ea SIMD kernels.

Computes count, mean, stddev, min, max, p25, p50, p75 for every numeric column. String columns get length statistics.

Install

pip install eastat

Pre-built wheels include compiled SIMD kernels for Linux x86_64, Linux aarch64, and Windows x86_64. No compiler needed.

Usage

eastat data.csv
eastat --json data.csv
eastat -d '\t' data.tsv
eastat -c 0,2,4 data.csv
eastat --no-quotes data.csv   # force fast scan (skip quote detection)
eastat --quoted data.csv      # force quote-aware scan

Or from Python:

from eastat import process

results, headers, n_rows, col_count, timings = process("data.csv")

How it works

Four Ea kernels form a zero-copy pipeline over a memory-mapped file:

Kernel What it does
csv_scan AVX2 structural scanner — finds delimiter and newline positions using u8x32 comparison + movemask. Two modes: fast (no quotes) and quote-aware. Includes count_positions_quoted for two-pass large-file strategy.
csv_layout Builds row boundary arrays and per-row delimiter index via merge-scan. O(n_delims + n_rows).
csv_parse Batch ASCII-to-float parser with whitespace/quote trimming. Field length stats for string columns.
csv_stats f32x8 dual-accumulator FMA reduction for sum, min, max, sum-of-squares in one pass. SIMD binary-search percentiles (p25/p50/p75).

Scan modes

eastat auto-detects whether the CSV contains quoted fields by sampling the first 4 KB:

  • Fast scan — no quote handling. SIMD chunk-skip via movemask. Best throughput.
  • Quoted scan — tracks quote state to ignore delimiters/newlines inside quoted fields.

For large files (>128 MB), a two-pass strategy avoids over-allocation: count_positions_quoted counts positions first, then exact-sized buffers are allocated for the SIMD scan pass.

Override with --no-quotes or --quoted.

Precision & fairness

eastat uses a hybrid strategy — Eä SIMD kernels where they genuinely outperform, NumPy where it's the right tool:

Statistic Engine Precision Notes
sum, min, max, sumsq Eä f32x8 SIMD f32 Dual-accumulator FMA reduction — faster than NumPy f64
percentiles (p25/p50/p75) np.percentile f64 Same algorithm as pandas — fair comparison, O(n) partial sort
CSV parsing Eä batch_atof f32 Handles integers, decimals, signed values, scientific notation (1.5e-3, -2.0E+5)
structural scan Eä AVX2/NEON — movemask-based delimiter/newline detection

Scientific notation (e/E with optional +/- sign) is fully supported in numeric parsing, matching pandas/polars behavior.

Building from source

Only needed if there's no pre-built wheel for your platform.

# Install the Ea compiler
# See https://github.com/petlukk/eacompute/releases

# Compile kernels
EA_BIN=./ea ./build_kernels.sh

# Install
pip install -e .

Requirements

  • Python 3.9+
  • NumPy

Metadata

Release files for eastat 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for eastat 0.1.1
File Interpreter ABI Platform Actions
eastat-0.1.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for eastat-0.1.1-py3-none-win_amd64.whl
eastat-0.1.1-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for eastat-0.1.1-py3-none-manylinux_2_17_x86_64.whl
eastat-0.1.1-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for eastat-0.1.1-py3-none-manylinux_2_17_aarch64.whl

Total release size: 65.8 kB

Release files / eastat-0.1.1-py3-none-win_amd64.whl

Download URL eastat-0.1.1-py3-none-win_amd64.whl
Size 19.3 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f0fa0181478843abc62bc62c605f718cfe23f7b834394529d00190f243d89210
BLAKE2b-256 checksum
How to use checksums
38b3ec07f1bfbc495794060df500e645dd0fd2df3ccd1a55b575b9593a50d7a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.

Transparency log

Release files / eastat-0.1.1-py3-none-manylinux_2_17_x86_64.whl

Download URL eastat-0.1.1-py3-none-manylinux_2_17_x86_64.whl
Size 23.9 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6b47549f68995c0770e79b587822f7c4a8436d67040d1acc18ed38227bf78143
BLAKE2b-256 checksum
How to use checksums
6f758705dbe3c84b8eef86d7d52aabc6ae21bad36434ef15f957e1cd0aed7b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.

Transparency log

Release files / eastat-0.1.1-py3-none-manylinux_2_17_aarch64.whl

Download URL eastat-0.1.1-py3-none-manylinux_2_17_aarch64.whl
Size 22.5 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
876d76c212f24c8e45f0317d10ebf0cc544d994e9569083e7abf22e0aa81faf1
BLAKE2b-256 checksum
How to use checksums
f72e09870dfd790a9806019fc3ed52475c796b642e7ebcd4b7fde101bdd35404
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.

Transparency log

Security for eastat 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for eastat-0.1.1-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

3 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page