Capstone · lesson 9 of 10
Parts in this lesson
Afinding → so what → now what9.10: a recommendation and its evidence
Bdata/clean/README.mda data dictionary and source card

Recommendations and a reusable dataset

Last updated

An analysis is most useful when it ends in something others can act on, and something others can build on. In this lesson you'll write three recommendations, each with its evidence and how sure it is, and publish your clean dataset with a data dictionary and a source card, so the next analyst starts where you finished.

By the end of this lesson you can

  • Write recommendations sized to the strength of their evidence
  • Write a data dictionary for a clean dataset
  • Publish a dataset with its source, licence and credit

Three recommendations

The report's last section is what next: three recommendations at most, each with the strength its evidence earns (9.10). Practise judging strength on findings like the ones capstones produce:

0 of 5 placed right

  1. Real prices rose in every region over two years, in both kinds of rice, by far more than month-to-month swings.

  2. One region’s price was ₱3 above the national average in the last year, from markets the agency surveys there.

  3. Prices fell the month after a policy change.

  4. The wettest day each year at one station was heavier in the last decade than in the 1980s, by more than the year-to-year variation.

  5. Enrolment in one region fell 2% in one school year.

Then write yours, each in this form:

  1. The recommendation, in one sentence, for a named reader: a policy office, a school division, a farmers' group, a newsroom.
  2. The evidence: the finding, its size, its comparison, and the chart or table in the report.
  3. How sure: strong, worth a closer look, or not enough. For the last two, say what would settle it.
  4. What would change it: the result, next month or next year, that would mean the recommendation no longer holds.

Your data describes what happened, not what would happen under a different policy. Recommend checks and closer looks freely; recommend actions only where the evidence is strong, and say what they rest on.

A data dictionary

Your clean dataset is probably the most reusable thing you made: someone else can skip C.2 and C.3 and start where you finished. To make that possible, it needs a data dictionary: every column, its type, its meaning and its units, plus where the data came from. Write it as data/clean/README.md:

# Rice prices by region, monthly, in real pesos

Cleaned from PSA retail price tables. Made by clean.py and 05-answer.ipynb
in this repository; see CLEANING.md for every change made to the source.

## Source and licence

Philippine Statistics Authority, OpenSTAT: (table title), downloaded 2 March 2026.
Licensed CC BY 4.0. This dataset is adapted from it (reshaped, region codes added,
real prices computed) and is shared under CC BY 4.0. Credit the PSA and this dataset.

## Columns

| column     | type    | meaning                                             | example     |
|------------|---------|-----------------------------------------------------|-------------|
| psgc       | text    | PSGC code of the region (keep as text: leading 0s)  | 040000000   |
| region     | text    | region name as the PSA writes it                    | CALABARZON  |
| rice       | text    | "regular-milled" or "well-milled"                   | well-milled |
| month      | date    | first day of the month, YYYY-MM-01                  | 2024-03-01  |
| price      | number  | average retail price, pesos a kilo, as published    |             |
| real_price | number  | price in pesos of the base month (see below)        |             |
| yoy_%      | number  | % change in real_price on the same month a year earlier |         |
| gap        | number  | real_price minus the national real_price, same rice and month |   |

Missing values are empty. Real prices are in pesos of 2018 (the CPI's base year). CPI: PSA, by region.

## Known problems

(From the source card: gaps, breaks, revisions.)

Two details save the next person hours: say how missing values are written, and keep codes as text so leading zeros survive (5.8). Give an example for each column.

Publishing the dataset

Whether you may publish the clean dataset depends on the source's licence (C.1):

  • PSA tables, under CC BY: yes. CC BY allows sharing adapted data, if you credit the source, link the licence, and say what you changed. Your README and cleaning log do all three. Share yours under CC BY too, so others can reuse it on the same terms.
  • GHCN-Daily: yes. It's public domain, so there are no conditions, but cite NOAA's dataset all the same. CHIRPS is CC BY 4.0, like the PSA tables: credit the Climate Hazards Center and say what you changed.
  • Data you requested under terms you signed (PAGASA's, for example): only as those terms allow. If they don't allow republishing, publish your code, your cleaning log and your results, and tell readers how to request the same data themselves.
  • Anything with personal data: no (10.6). Official tables of counts are usually safe; check for small counts anyway.

Publish it where people look for data: in your project's repository (outside .gitignore's data/ rule, as dataset/), or on a data repository that gives it a permanent link. The FAIR principles sum up the goal: data that others can find, get, open with common tools, and reuse because its licence and meaning are clear.

Check what you learned

You reshaped and added real prices to a CC BY table. What must the shared version say?
Why keep PSGC codes as text in the clean file?

Sources

Every example on this page was run with Python 3.14, and its output and error messages are copied from it. These pages cover the same ground in more depth.

All sources for Simple Data Analysis