On this page
Query tables directly Start a project with the data-analytics pack Ask PanCode to analyse a dataset Follow outputs on the board LimitsData analytics with PanCode
Profile tables with the data tool, install the data-analytics pack, and inspect results on the board.
Query tables directly
PanCode's built-in data tool profiles, filters and aggregates CSV, TSV, .xlsx and Parquet files without loading them whole or running Python. inspect reads schemas and workbook sheets. stats profiles columns, counts rows matching where, and runs group_by aggregates (count, count_distinct, sum, mean, min, max, and A*B products) with a reconciled grand total.
Sums, means and standard deviations use exact decimal arithmetic, including Parquet DECIMAL columns. Missing-value sentinels (such as NA, N/A, null, None, - and .xlsx error cells) are counted apart from empty cells. Ambiguous day/month date columns are flagged in profiles and refused by where or min/max until date_format is given. See Tools and permissions for every operator and format.
Start a project with the data-analytics pack
Shell
mkdir my-analysis
cd my-analysis
pancode hub install plugin:data-analytics --project
pancodeplugin:data-analytics (0.2.0) ships nine skills (project setup and workspace check, grain checks, pandas summaries, Excel workflows, matplotlib and Plotly charts, AppTest-verified Streamlit dashboards, Tableau reconciliation, modelling and customer analytics), four agents (data-analyst, dashboard-builder, dashboard-reviewer and data-quality), and local DuckDB and Excel MCP servers via uvx.
Ask PanCode to start an analysis project in the folder. The analysis-project skill copies a pinned uv project (pyproject.toml, uv.lock, .python-version for Python 3.12), a PANCODE.md handbook and an empty data/ directory, running uv sync only when you approve.
Ask PanCode to analyse a dataset
Profile
data/orders.csv, check the grain, and reconcile sales and order counts by region against the grand total.
The pack's skills and agents query tables with the data tool first, then use pandas, Plotly and Streamlit through uv run for joins, models, figures, notebooks and dashboards. To reply in another language while keeping code, file names and column names as written, set chat.replyLanguage in Settings.
Follow outputs on the board
Press Alt+K or run /board in a terminal with panes to open the board dock (or /view board without panes, and the Board drill-in in the desktop app). Data lists touched datasets with their shape and grain, Chart shows figures, and Experiment compares model runs against baselines.
In VS Code, Cursor, Windsurf and VSCodium integrated terminals, PanCode stays in the plain terminal by default. Enabling terminal.integrated.enableImages with the WebGL renderer draws figures inline, and pressing o in /view opens an artifact in the running editor window.
Limits
datapasses stream up tomax_bytes(default 256 MiB) or 60 s; checkcomplete: truebefore treating results as whole-table totals.selectwithwherestops early atlimitwithrowsMatched: null; usestatswithaggregates: ["count"]for exact counts.- Distinct counts are exact up to 100,000 per column or group (then a flagged HyperLogLog estimate), and
group_bycaps at 100,000 groups. - Running
uv syncand the firstuvxlaunch of the DuckDB or Excel server need network access anduvonPATH; the pack declares thepypiegress preset, which user installs review before adding tosafety.egress.main.presetsand project installs never apply to user settings. - Session board recording starts once the board opens in a session; analysis scripts writing to
PANCODE_BOARD_FACTSrecord facts either way.