Skip to content

Lesson 25 ยท Projects and Reference

Project: A Data Report You Can Trust

Turn a spreadsheet into a verified report with ChatGPT: define metrics, clean data, build an independent check, write findings and review before sharing.

In this project you use ChatGPT to analyze a small dataset and write a report you can defend. The key skill is independent verification: you check ChatGPT's numbers with a second method before anyone reads them.

The scenario

You help a fictional community bike workshop. It logs repair jobs and wants to know which repair types take the most time. The data below is invented and safe to share.

Step 1: prepare the data

Save this as repairs.csv:

TEXT
job,date,type,minutes,paid
1,2027-03-02,flat tire,20,yes
2,2027-03-02,brakes,45,yes
3,2027-03-03,flat tire,25,no
4,2027-03-04,chain,30,yes
5,2027-03-04,brakes,50,yes
5,2027-03-04,brakes,50,yes
6,2027-03-05,gears,90,yes
7,2027-03-06,flat tire,,yes
8,2027-03-06,gears,600,yes

It has traps on purpose: a duplicate row, a missing value and a suspicious 600 minutes.

Step 2: define the question and rules

Write your rules before you analyze:

TEXT
Question: Which repair types take the most time?
Rules:
- Duplicate job numbers count once.
- Missing minutes are excluded from time figures, but listed.
- Jobs above 240 minutes are flagged for a human to confirm and
  excluded until confirmed.
- Report count, total minutes and median minutes by type.

Deciding first stops you from adjusting rules to get a nicer story.

Step 3: ask ChatGPT

Upload the file and send your rules, plus:

TEXT
First describe the data and list every problem you find. Wait for my
go-ahead. Then follow my rules exactly, show your code, and show how
many rows each rule removed.

Compare its list of problems with the traps above. If it misses one, tell it and ask what else it might have missed.

Step 4: check with your own code

Now compute the same numbers independently. This block applies the rules in plain Python.

Python Independent check of the repair report

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Compare each number with ChatGPT's table. Any mismatch needs an explanation before you continue. Common causes are a different duplicate rule, missing values treated as zero or the flagged row being included.

Step 5: reconcile the counts

Rows should add up: total rows = duplicates + missing + flagged + used. With this data, nine rows equal one duplicate, one missing, one flagged and six used. If the sum fails, some rows disappeared without a rule.

Step 6: investigate the unusual value

Do not delete the 600-minute job quietly, and do not accept it blindly. Ask the workshop (in this exercise, decide yourself). If it is confirmed, include it and show how it changes the results. Reporting both versions is often honest and useful.

Notice also what "most time" means. Total time depends on how many jobs of each type there were. The median describes a typical job. The two measures can rank the types differently, so say which one you used.

Step 7: draft the report

TEXT
Write a one-page report for volunteers using only the verified table
I paste below. Include: the question, data rules, results, limits and
two next steps. Do not claim causes. Do not add numbers.

[paste your verified table]

You paste the verified numbers, not the raw file. This lowers the chance of new numbers appearing.

Step 8: review the report

Use this checklist:

  • Every number matches your table.
  • The sample size is stated. Six usable jobs are far too few for strong conclusions.
  • Missing and flagged jobs are mentioned.
  • No cause is claimed without evidence.
  • No private data is included.
  • A named person approves it.

An illustrative sentence with good caution: "In this small log, the one usable gear job had the longest recorded time, so we cannot say gear repairs usually take longer."

Step 9: make it repeatable

Save your rules, your check script and your report prompt. Next month, run the script first and compare. If a new data problem appears, add a rule and write down why. A project is a good place to keep the instructions.

What the numbers say, and what they do not

Look at the verified output. Brakes have the highest total, 95 minutes from two jobs. Gears are close with 90 minutes from only one job, and its median of 90 is the highest. A reader could reasonably call either one the answer, depending on the question. If volunteers want to know where the workshop's time goes, total time is useful. If they want to know how long one repair is likely to take, the median is closer, but one gear job cannot tell you much.

Say this in the report. Do not let ChatGPT or yourself choose whichever measure makes a stronger headline.

Test sensitivity

A sensitivity check asks how much your conclusion changes when you change a rule. Run the script again with the 600-minute job included by raising the limit from 240 to 700. Gears then jump far ahead on total time. Next, return the limit to 240. If one disputed row can reverse your conclusion, say so clearly and recommend confirming it before anyone acts.

You can ask ChatGPT to help you plan these checks:

TEXT
Which of my data rules could change the ranking? Suggest one test
for each rule. Do not run them yet.

Then run the tests in your own script, so the evidence comes from a method you control.

Present the result

Put the answer first, then the table, then the limits. Use a plain title, label units and show counts next to every figure. A short, honest report with clear limits is more useful than a long, confident one. Ask a person who did not work on it to read it and tell you what they think it claims. If their summary is stronger than your evidence, rewrite those sentences.

Keep an audit trail

Store the original file, the rules, your check script, the verified table and the final report together. Add the date and the name of the person who approved it. If someone later questions a number, you can trace it back to specific rows and rules, without relying on an old chat.

Common mistake: writing the report first and checking later. Verify numbers before they become sentences, because polished text invites trust.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Why define cleaning rules before analyzing?

    Rules set in advance keep the analysis honest.
  2. 2. What does reconciling row counts test?

    Counts that do not add up reveal lost or double-counted rows.
  3. 3. Why give the report step only the verified table?

    Grounding in checked numbers limits new errors, though you still review.

Summary

  • Set the question and data rules first.
  • Ask ChatGPT to describe the data and show its code.
  • Verify with an independent method and reconcile counts.
  • Investigate unusual values openly.
  • Write from verified numbers and state limits.

Next: ChatGPT Glossary and Cheat Sheet

Your progress is saved in this browser. No account needed.