Look inside a CSV file from the portal¶
Draft: not yet validated
These steps were followed once on the live portal on 2026-11-13, by the AI assistant that drafted them. The browser used for the test blocks new tabs, so the viewer was opened at its address, not with the View button. Tell us what you find.
You will: know a table's columns, how many rows it has, and the range of each column, before you launch anything.
Time: 5–10 minutes. You need: to be signed in to the MESA Portal,
and readings.csv in a mesa-practice folder in your Data Store.
Download it with MESA Cloud Shell if you have not.
Steps¶
-
In the sidebar, click Data Browser, then My Files, then
mesa-practice. On thereadings.csvcard, click View.You should see: a new tab named
readings.csv - Data Viewer, with an SQL Query box and, under it, the first rows of the table. -
Click Schema.
You should see: one row for each column, with its type.
gauge_id VARCHAR date DATE value DOUBLE flag VARCHAR -
Click Count.
You should see:
total_rowsand, under it,152. -
Click Stats.
You should see: one row for each column again, now with its smallest and largest value.
dateruns from2026-07-01to2026-07-31, andvaluefrom0.0to180.0. -
Each button wrote a query into the SQL Query box. Replace it with this one, then click Run:
SELECT flag, count(*) AS n FROM read_csv('source.csv', auto_detect=true) GROUP BY flag;You should see: two rows.
flag n NULL 150 S 2
Check it worked¶
The two counts in step 5 add up to the row count in step 3: 150 + 2 = 152. Two
readings carry the flag S, and the rest have none.
If it didn't¶
The dates are long numbers. Preview, and the table the viewer opens with, show
a date as a number such as 1782864000000. Stats shows the same column as dates.
The file is not damaged.
Run gives an error. Check the quotes and the spelling. 'source.csv' is the
viewer's name for the CSV file you opened, whatever the file is called. Clicking
Preview puts a working query back.
There is no View button. The Data Viewer opens CSV, TSV, Parquet, and DuckDB files. For other tables, load the file into a notebook.
Next¶
- A largest value of 180 is worth a second look: Check a column's range and missing values.
- Tally a quality flag before you trust a number does step 5 in a notebook, where you can keep the result.
- Reference: Managing data, "View files in the browser".
Not yet validated by a person. Drafted with AI assistance on 2026-11-13 and followed once on the live portal that day.
Machine-readable versions of this page: Markdown twin · raw source on GitHub · llms.txt · llms-full.txt (whole site). See For AI agents.