--- type: Reference title: "Self-checks" description: "Short questions for checking yourself after a tutorial, each with its answer, the likely slips, and how the answer is confirmed against the practice data." tags: [pathway, self-check, practice-data] status: draft generated: { by: "gen-pathways/1", at: "2026-11-24T00:00:00Z" } stale_after: "2027-05-11T00:00:00Z" sources: - id: pathways resource: "https://github.com/idss-mesa/trainings/blob/main/data/pathways.yml" title: "MESA Trainings pathway data" author: "team:idss-mesa" --- # Self-checks A self-check is one short question to try after a tutorial. Its answer comes from doing the task: most ask for a number the tutorial does not print, which you get with a small change to what it taught. They are for your own use. Nothing records or sends your answers unless you use the check on the tutorial's own page, and then only [in your own browser](../progress.md). Each answer is folded away. Try the question first. ## 1. Orient and navigate Already at home here? If you can answer the 3 questions marked *skip-check*, you can skip this point. If one goes wrong, its tutorial covers it. ??? question "The path you copied stops at /iplant/home/shared, and the listing holds many projects that are not MESA's. Which did you click?" After [Find MESA's community data in the Data Browser](../tutorials/find-community-data.md) · *skip-check*. The path you copied stops at `/iplant/home/shared`, and the listing holds many projects that are not MESA's. Which did you click? - Community - Shared - User Shared ??? success "Answer" **Shared.** Shared opens every CyVerse community project. Community is the MESA folder inside it. If you answered *Community*: Community opens the MESA folder, and its path goes on to `/iplant/home/shared/mesa`. Not machine-checked: this is about a portal screen, which only a person can confirm. ??? question "Which of these tells you that a file will still be there after the app stops?" After [Save your work where it survives the session](../tutorials/save-your-work.md) · *skip-check*. - It is listed in JupyterLab's file browser - The dot on the notebook's tab has gone - It is listed under My Files in the portal ??? success "Answer" **It is listed under My Files in the portal.** The Data Browser reads the Data Store directly, not the running app. If you answered *It is listed in JupyterLab's file browser*: JupyterLab also lists files on the app's own disk, which is removed when the app ends. If you answered *The dot on the notebook's tab has gone*: That means the notebook is saved, but not where. It may be on the app's own disk. Not machine-checked: this is about a portal screen, which only a person can confirm. ??? question "Your analysis is listed under Canceled, not Completed. Which button ended it?" After [Stop an app and find your results](../tutorials/stop-app-find-results.md) · *skip-check*. - Relaunch - Save & Exit - Terminate ??? success "Answer" **Terminate.** Terminate ends the app at once without saving its outputs. If you answered *Save & Exit*: Save & Exit stops the app cleanly, and the analysis is then listed under Completed. If you answered *Relaunch*: Relaunch starts the app again with the same settings. It does not end one. Not machine-checked: this is about a portal screen, which only a person can confirm. ## 2. Run and understand Already at home here? If you can answer the 3 questions marked *skip-check*, you can skip this point. If one goes wrong, its tutorial covers it. ??? question "Show the last row of readings. Which gauge and day is it?" After [Load a file from your Data Store into a notebook](../tutorials/load-a-file.md). Show the last row of `readings`. Which gauge and day is it? - G01, 2026-07-01 - G03, 2026-07-31 - G05, 2026-07-09 - G05, 2026-07-31 ??? success "Answer" **G05, 2026-07-31.** The file runs gauge by gauge, so it ends with G05 on the last day of July. ```python readings.tail(1) ``` If you answered *G01, 2026-07-01*: That is the first row, which `head()` shows. `tail()` shows the end. Confirmed against the practice data each time this site is built. ??? question "The largest reading at G02 is 2.92. What is it in millimetres?" After [Read the data dictionary before the data](../tutorials/read-the-data-dictionary.md). ??? success "Answer" **29.2 mm.** G02 reports in centimetres, and a centimetre is ten millimetres. If you answered *2.92*: That is the value as stored, in centimetres. It has not been converted. If you answered *0.292*: That divides by ten. Centimetres to millimetres multiplies by ten. Confirmed against the practice data each time this site is built. ??? question "How many readings have a value of exactly 0?" After [Check a column's range and missing values](../tutorials/check-range-and-missing.md) · *skip-check*. How many readings have a `value` of exactly 0? ??? success "Answer" **80.** More than half of the 152 readings are dry days. ```python (readings["value"] == 0).sum() ``` If you answered *150*: That is the number of blank flags. The question is about `value`. If you answered *72*: Those are the readings above 0. If you answered *0*: No `value` is blank, but 80 of them are zero. A zero is a measurement, not a gap. Confirmed against the practice data each time this site is built. ??? question "Leave out the flagged readings. What is the largest value that remains?" After [Tally a quality flag before you trust a number](../tutorials/tally-a-quality-flag.md) · *skip-check*. Leave out the flagged readings. What is the largest `value` that remains? ??? success "Answer" **32.5.** Without the suspect reading of 180, the largest is an ordinary wet day at G03. ```python readings.loc[readings["flag"] != "S", "value"].max() ``` If you answered *180*: The flagged reading is still in. Keep only the rows whose flag is not `S`. If you answered *2.92*: That is the largest at G02 alone. Confirmed against the practice data each time this site is built. ??? question "Remove exact repeats with drop_duplicates(). How many rows remain?" After [Count records per day to find incomplete days](../tutorials/count-records-per-day.md) · *skip-check*. Remove exact repeats with `drop_duplicates()`. How many rows remain? ??? success "Answer" **151.** One row, G03 on 5 July, is written twice, so 152 becomes 151. ```python len(readings.drop_duplicates()) ``` If you answered *152*: That is the table as loaded. One row for G03 is written twice. If you answered *155*: That is a complete table, 5 gauges for 31 days. This one has four missing days as well as a repeat. If you answered *1*: That is how many rows are removed, not how many remain. Confirmed against the practice data each time this site is built. ??? question "In local time, on how many days of the week did rain fall at G03?" After [Turn UTC timestamps into local days](../tutorials/local-days-from-utc.md). ??? success "Answer" **5.** Two of the seven local days were dry. If you answered *6*: That counts UTC dates. Evening rain crosses midnight UTC, so it spills into an extra date. If you answered *7*: That counts every day of the week. Two had no rain. If you answered *8*: That is the number of UTC dates the week touches, wet or dry. Confirmed against the practice data each time this site is built. ??? question "In how many of the 168 hours is rain_mm above 0?" After [Work with a long table, one row per kind of measurement](../tutorials/work-with-a-long-table.md). In how many of the 168 hours is `rain_mm` above 0? ??? success "Answer" **17.** Rain fell in about one hour in ten. ```python (wide["rain_mm"] > 0).sum() ``` If you answered *168*: That is every hour. Most of them are dry. If you answered *336*: That is every row of the long table, both measurements together. Confirmed against the practice data each time this site is built. ??? question "What does sum(is.na(readings$flag)) return?" After [Load a file from your Data Store in RStudio](../tutorials/r-load-a-file.md). What does `sum(is.na(readings$flag))` return? ??? success "Answer" **150.** All but two readings have a blank flag, and `na.strings = ""` reads a blank as missing. If you answered *0*: The file was read without `na.strings = ""`, so blanks are empty text, not missing values. If you answered *2*: Those are the flagged readings. `is.na()` counts the ones with no flag. Confirmed against the practice data each time this site is built. ??? question "Which gauge is furthest north?" After [Map point data with sf in MESA RStudio Geospatial](../tutorials/map-points-in-rstudio.md). - G01, Boathouse - G02, Orchard - G03, Observatory - G05, Quarry ??? success "Answer" **G03, Observatory.** Observatory has the largest latitude, so it sits at the top of the map. If you answered *G05, Quarry*: Quarry has the smallest latitude. It is furthest south. If you answered *G01, Boathouse*: Boathouse is furthest west. Its longitude is the most negative. Confirmed against the practice data each time this site is built. ## 3. Query and connect Already at home here? If you can answer the 2 questions marked *skip-check*, you can skip this point. If one goes wrong, its tutorial covers it. ??? question "After the join, how many rows have a unit of cm?" After [Reconcile row counts before and after a join](../tutorials/reconcile-a-join.md) · *skip-check*. After the join, how many rows have a `unit` of `cm`? ??? success "Answer" **31.** Only G02 reports in centimetres, and it has 31 readings. ```python (joined["unit"] == "cm").sum() ``` If you answered *1*: That counts gauges. The join gives every one of G02's readings its unit. If you answered *121*: Those are the rows in millimetres. Confirmed against the practice data each time this site is built. ??? question "With one SQL query on readings.parquet, count the readings above 20." After [Query a Parquet file with DuckDB from a notebook](../tutorials/query-parquet-with-duckdb.md) · *skip-check*. With one SQL query on `readings.parquet`, count the readings above 20. ??? success "Answer" **19.** The count mixes units, as the file does, so G02's centimetre values never pass 20. ```python duckdb.sql("SELECT count(*) FROM 'readings.parquet' WHERE value > 20") ``` If you answered *10*: That is the count above 25. If you answered *152*: That is every row. Add `WHERE value > 20`. Confirmed against the practice data each time this site is built. ## 4. Explore and verify Already at home here? If you can answer the 1 questions marked *skip-check*, you can skip this point. If one goes wrong, its tutorial covers it. ??? question "Convert G02 to millimetres, leave out the flagged readings, and drop the repeated row. Which gauge then has the largest July total?" After [Check an AI-suggested result against the data](../tutorials/check-a-suggested-result.md) · *skip-check*. - G05, 210.9 mm - G03, 251.1 mm - G03, 273.6 mm - G05, 390.9 mm ??? success "Answer" **G03, 251.1 mm.** Observatory leads once the data is cleaned. G01 is still missing four days, so even this is not yet a fair comparison. If you answered *G05, 390.9 mm*: That total includes the reading of 180 that the sensor flagged as suspect. If you answered *G05, 210.9 mm*: That is G05 without its flagged reading, but G03 is higher. If you answered *G03, 273.6 mm*: The repeated row for 5 July is still counted twice. Confirmed against the practice data each time this site is built. ## Next - [Choose a pathway](index.md) - [Your progress](../progress.md)