Reports from tables
pacpio-team/reports-from-tables
Owner: Pacpio Team
Made by the Pacpio team
Report
Copy project link
Anyone can see and download this project, even without signing in.
Made by the Pacpio team
Use it with your AI
Works in Claude, ChatGPT or any other AI
-
Step 2: Ask your AI
Paste this into your chat:
What does the Pacpio project pacpio-team/reports-from-tables do?
| name | description |
|---|---|
| describe-table | Describes a table, columns and types, period, row count, missing values, duplicates, totals; use first for any new table. |
Describe table
Use when: a table is new, or the user asks "what is in this file".
Input
A file in data/ or a pasted table.
Steps
- Read the table. For a long one, read it in parts and keep running counts.
- For each column: type (text, number, date, yes/no), an example, how many empty cells, how many distinct values (for text columns), minimum and maximum (for numbers and dates).
- Rows: total count; exact duplicates, if any; the period from the earliest to the latest date.
- Totals of number columns with the number of rows counted, by
knowledge/counting-rules.md. - Save
reports/<table>-profile.md(note "Profile: "). - Answer with three lines: what the table is, the period and row count, what looks worth checking.
- Two columns with the same name: say so; refer to them by position until the user renames them.
- A column with mixed content (numbers and text): type "mixed", count each kind, and flag it for
data-check. - No dates at all: no period; say the table is a snapshot.
Output
A table: Column | Type | Example | Empty | Distinct or range | Notes. Then rows, period, totals, and "Worth checking".
Edge cases
---name: describe-tabledescription: Describes a table, columns and types, period, row count, missing values, duplicates, totals; use first for any new table.---# Describe tableUse when: a table is new, or the user asks "what is in this file".## InputA file in `data/` or a pasted table.## Steps1. Read the table. For a long one, read it in parts and keep running counts.2. For each column: type (text, number, date, yes/no), an example, how many empty cells, how many distinct values (for text columns), minimum and maximum (for numbers and dates).3. Rows: total count; exact duplicates, if any; the period from the earliest to the latest date.4. Totals of number columns with the number of rows counted, by `knowledge/counting-rules.md`.5. Save `reports/<table>-profile.md` (note "Profile: <table>").6. Answer with three lines: what the table is, the period and row count, what looks worth checking.## OutputA table: Column | Type | Example | Empty | Distinct or range | Notes. Then rows, period, totals, and "Worth checking".## Edge cases- Two columns with the same name: say so; refer to them by position until the user renames them.- A column with mixed content (numbers and text): type "mixed", count each kind, and flag it for `data-check`.- No dates at all: no period; say the table is a snapshot.