DS 227 · Week 12

Course Synthesis

The whole knowledge-discovery process in one view, and the final presentations.

Knowledge Discovery in Data · University of the Philippines Cebu

Outline

Review and final project

Key terms · 1 of 2

Eight terms for the workflow

pipeline

The fixed order of steps that turns raw data into an answer: load, prepare, explore, communicate.

e.g. one notebook that runs all four, top to bottom

load

Getting the data into Python as a working table.

e.g. df = pd.read_csv("flood.csv")

prepare

Correcting problems before analysis: types, missing values, outliers, joins, and privacy.

e.g. turn text dates into dates; drop the name column

explore

Summarising and charting the data to find patterns, then checking them.

e.g. describe(), a histogram, a correlation

communicate

Turning one checked finding into a sentence, a chart and a talk that others can trust.

e.g. a finding-title with its number and its limit

reproducible

Another person can rerun the work from the start and get the same numbers.

e.g. Restart & Run All finishes with no errors

provenance

Where the data came from: who collected it, when, why, and under what licence.

e.g. "DPWH export via the BetterGov.ph mirror", plus the download date

limitation (caveat)

A plain statement of what the data or method cannot show.

e.g. "no outcome column, so I cannot say if flooding fell"

Key terms · 2 of 2

Eight terms for the final project

deliverable

Work that is submitted and graded.

e.g. the notebook, the written claim, the talk

rubric

The list of criteria against which work is marked, with what earns full marks.

e.g. defensibility, correctness, method, communication, ethics

claim

A finding written as four sentences: the finding, its number, the method, the limit.

e.g. the week-9 template

scope

How big the question is. A good scope is one sentence with the exact columns named.

e.g. not "analyse education" but "completion vs teachers per pupil, Region VII"

defensible

Able to survive a sceptical reader: every number traced to code, every limit stated.

e.g. "80.8% complete (n=34,079)", not "almost all complete"

null result

A checked finding that there is no clear difference or relationship. Still a result.

e.g. "completion rates do not track budget size"

peer review

A classmate checks the work before submission, looking for omissions.

e.g. "which sentence goes further than the evidence?"

Restart & Run All

Clearing the notebook's memory, then running every cell from the top: the definitive test that it works.

e.g. Colab: Runtime → Restart and run all

Part A

Course review

The content of twelve weeks, assembled.

Each step was introduced in a separate week. This part arranges them into one workflow, load → prepare → explore → communicate, which the project follows.

Pipeline

Each week as one stage of the pipeline

1

Frame

Weeks 1–2 · KDD & CRISP-DM: the question comes first.

2

Acquire

Weeks 3–4 · Scraping, APIs, and collection etiquette.

3

Prepare

Weeks 5–6 · Gaps, outliers, merges, one honest table.

4

Explore

Weeks 7–8 · Description, charts and correlation.

5

Communicate & protect

Weeks 9–11 · Findings, dashboards, ethics.

Workflow

Load → prepare → explore → communicate

StepIn plain wordsTools usedCommon error
LoadGet the data into a table and look at itpd.read_csv, an API, a scraper; shape, head()A column that looks full but is empty (amount_paid)
PrepareFix types, gaps, outliers and joins; remove what identifies peopleto_datetime, isna(), merge, dropA cleaning step that quietly deletes a whole group
ExploreSummarise and chart; look for a pattern, then try to break itdescribe(), groupby, histograms, corr()A summary that silently skipped rows
CommunicateOne checked finding, as a sentence and a chart, with its limitfinding-titles, sorted bars, the four-sentence claimA verb stronger than the evidence ("proves", "causes")
One dataset, twelve weeks

34,079 flood control projects

The dataset used throughout the course.

Course summary

One technique and one common error per week

WeekTechniqueError it revealed
4APIs, JSON, paginationamount_paid is 0 on every row — unpopulated, not unpaid
5Missing data, outliersdropna() removed 25.6% of rows and every unfinished project
6Joins, types, derived columnsA project that finished 17 days before it started
7Descriptive statisticsdescribe() silently excluded 6,415 rows
8Correlation, visualisationr = −0.785 between latitude and longitude
9Data journalismA ₱75.2B headline the data could not support
10Storytelling, dashboardsA partial year drawn as a 47% collapse
11Ethics, privacyOne rounded column made 30.9% of records unique
The pipeline as one script

Every figure in the course, in forty lines

This is the actual pipeline, shortened here, not a summary. It runs in about a second and reproduces every number in the course.

The project in miniature

Load, convert, check, derive, summarise, relate, protect. The order matters, and the course has shown why each step precedes the next.

  • pd.read_csv(path)load: read the CSV file into a DataFrame
  • pd.to_numeric(..., errors="coerce")turn text into numbers; anything unreadable becomes NaN (missing) instead of an error
  • (df.completion_date - df.start_date).dt.daysdays between two dates (the full script first converts both columns with pd.to_datetime, week 6)
  • df.isna().sum()how many missing cells in each column
  • ... and the # w7-8 linessteps left out to fit the slide; each is a week's lab
# w4: get it df = pd.read_csv(path) # w6: types BEFORE anything else df["budget"] = pd.to_numeric(df.budget, errors="coerce") df["duration"] = (df.completion_date - df.start_date).dt.days # w5: what is missing, and why df.isna().sum(); df.groupby("status")... # w7-8: describe, skew, correlate # w9-10: claim, limit, chart # w11: k-anonymity before release
Output

Every course figure, reproduced in one run

$ python pipeline.py w4 loaded 34,079 rows w4 amount_paid unique [0] w5 naive dropna() 25,370 (25.6% lost) w5 completed, true 80.8% w5 completed, after drop 99.6% <- the lie w6 impossible durations 1 (16DC0070) w7 describe() count 27,664 (hid 6,415) w7 budget skew 5.13 w8 pearson / spearman 0.365 / 0.508 w8 median days by quartile [119,189,226,269] w9 contractors 4,841 w9 top 1% share 27.6% w11 unique at 1M 30.9% w11 50M bands + region 0.4%
Interpreting the output

Meaning of each line of the run

LineWhat it means
amount_paid unique [0]Every row holds 0: the column was never filled in, so it says nothing about payment
naive dropna() 25,370 (25.6% lost)dropna() deletes any row with an empty cell; a quarter of the data went
completed, after drop 99.6%Unfinished projects have no end date, so dropping gaps dropped them: 80.8% became 99.6%
budget skew 5.13Skew above 0 means a long right tail: most budgets are small, a few are huge
pearson / spearman 0.365 / 0.508Two correlation scores (week 8): 0 = no relationship, 1 = perfect; bigger budgets tend to take longer
unique at 50M bands 0.4%With ₱50M budget bands and region instead of province, 0.4% of projects stand alone (week 11)
Case study

The run, reproduced: loading the data

The next two slides are the script behind the run, cut into weeks 4–7 and 8–11. Every number on the “one run” slide comes out of this code, and the companion notebook runs it end to end.

The browser cannot download the data, so these blocks have no Run button.

import io, requests url = "https://portal.latarak.com/api/flood/export.csv" text = requests.get(url, timeout=60).text # kept: slide 3 reads it twice df = pd.read_csv(io.StringIO(text)) print(df.shape) (34079, 15)
  • text = requests.get(url, …).textkeep the downloaded text: the bug two slides on reads it a second way
  • (34079, 15)34,079 projects, 15 columns
Case study

The run in code: weeks 4 to 7

  • df.dropna()week 5’s naive drop: a quarter of the rows go, and the completion rate jumps to 99.6%
  • df["duration"] = …week 6’s derived column; one project is impossible
  • describe()["count"]week 7: 27,664 durations, so 6,415 rows were silently left out
# weeks 4-7, one line each print("w4 loaded ", len(df)) print("w4 amount_paid unique ", df.amount_paid.unique()) d = df.dropna() print("w5 naive dropna() ", len(d), f"({1 - len(d) / len(df):.1%} lost)") print("w5 completed, true ", f"{(df.status == 'Completed').mean():.1%}") print("w5 completed, after drop ", f"{(d.status == 'Completed').mean():.1%}") for col in ["start_date", "completion_date"]: df[col] = pd.to_datetime(df[col], errors="coerce") df["duration"] = (df.completion_date - df.start_date).dt.days print("w6 impossible durations ", (df.duration < 0).sum()) print("w7 describe() count ", int(df.duration.describe()["count"])) print("w7 budget skew ", round(df.budget.skew(), 2)) w4 loaded 34079 w4 amount_paid unique [0] w5 naive dropna() 25370 (25.6% lost) w5 completed, true 80.8% w5 completed, after drop 99.6% w6 impossible durations 1 w7 describe() count 27664 w7 budget skew 5.13
Case study

The run in code: weeks 8 to 11

  • r, rhoweek 8: Pearson 0.365 against Spearman 0.508 for budget and duration
  • c.head(48).sum() / c.sum()week 9: the top 1% of contractors hold 27.6% of the money
  • alone(cols)week 11: the share of projects alone in their group, before and after generalising
# weeks 8-11, continuing from the previous slide sub = df[["budget", "duration"]].dropna() r = sub.budget.corr(sub.duration) rho = sub.budget.rank().corr(sub.duration.rank()) print("w8 pearson / spearman ", round(r, 3), "/", round(rho, 3)) q = pd.qcut(sub.budget, 4, labels=False) print("w8 median days by quartile", sub.groupby(q).duration.median().astype(int).tolist()) c = df.groupby("contractor").budget.sum().sort_values(ascending=False) print("w9 contractors ", len(c)) print("w9 top 1% share ", f"{c.head(48).sum() / c.sum():.1%}") def alone(cols): g = df.groupby(cols).size() return f"{(g == 1).sum() / len(df):.1%}" df["b"] = (df.budget / 1e6).round() print("w11 unique at 1M ", alone(["region", "province", "year", "b"])) df["b"] = (df.budget / 5e7).round() * 50 print("w11 50M bands + region ", alone(["region", "year", "b"])) w8 pearson / spearman 0.365 / 0.508 w8 median days by quartile [119, 189, 226, 269] w9 contractors 4841 w9 top 1% share 27.6% w11 unique at 1M 30.9% w11 50M bands + region 0.4%
A bug found during synthesis

The error was in the synthesis script

The first run of that script reported 27,664 rows surviving dropna(). Week 5 had said 25,370. One of them was wrong.

  • csv.DictReader(f)Python's built-in CSV reader: each row becomes a dictionary of text
  • ''an empty string: text with nothing in it. It is a value, so dropna() keeps it
  • pd.read_csv(f)pandas' reader: an empty cell becomes NaN, the missing-value marker, which dropna() removes

Cause: the new script

csv.DictReader leaves an empty field as ''; pd.read_csv makes it NaN. Only the second is dropped, so the loader changed the answer.

import csv # DictReader: every cell is text, and an empty cell is "" (a value) rows = pd.DataFrame(list(csv.DictReader(io.StringIO(text)))) for col in ["start_date", "completion_date"]: rows[col] = pd.to_datetime(rows[col], errors="coerce") # "" becomes NaT print(len(rows.dropna())) # read_csv: an empty cell becomes NaN, which dropna() removes print(len(pd.read_csv(io.StringIO(text)).dropna())) 27664 25370
Tools

Tasks and tools from twelve weeks

This table is a project reference. Every row was practised in the labs.

Reminders, in a few words

requests / r.json()
fetch a web page or API / read its JSON reply
BeautifulSoup
find things inside a page's HTML
IQR fences / clip
outlier cut-offs / cap values at a limit
merge / concat
join tables side by side on a key / stack them
groupby / pivot_table
summarise per group / reshape into rows × columns
TaskTools
Fetch datarequests, BeautifulSoup, r.json()
Audit & cleanisna().sum(), IQR fences, clip
Combine & shapemerge, concat, groupby, pivot_table
Exploredescribe, histograms, corr, scatters
Communicatesmall multiples, sorted bars, finding-titles
Protectk-anonymity audit, banding, suppression
Habits

Four habits central to the course

Seven checks

One check per week, each part of the deliverable

CheckFromCost
.unique() on the column the claim rests onw45 seconds
Row count before and after every filterw52 lines
Range check on every derived columnw61 assert
count compared to len(df)w71 line
Relationship recomputed within groupsw81 groupby
Verb matched to the evidencew91 reading
k computed before releasew111 groupby
Learning outcomes

Skills acquired in the course

At the start of the course, a 34,000-row government dataset was only an object of reading. Students can now analyse one and state what it does and does not support.

That is a professional skill

Many people who work with data never learn the second half, the limits, which is what makes the first half trustworthy.

you can: get data from a file, an API or a database, and know what each door costs you find what is missing and decide what to do about it, with reasons summarise a distribution without being fooled by its shape tell the difference between a relationship and a coincidence write a claim that survives being checked by someone hostile release data without exposing the people in it
Review question

Question (select to reveal the answer)

A classmate's project: totals doubled after a merge, the "average" is quoted without spread, the headline says "proves", and one barangay's mean covers a single student. How many weeks of this course did that violate?

A · One: it is all the same mistake
B · Four: weeks 6, 7, 9 and 11, one each
C · None: data science is subjective
D · Impossible to tell without more charts

B: all four can be diagnosed from one paragraph.

Unexplained row growth (week 6's merge audit), centre without spread (week 7), "proves" from observational data (week 9), and a group-of-one statistic (week 11). The ability to name these failures is a central outcome of the course.

Part B

Final project

The whole pipeline, a chosen dataset, a chosen question.

Part A reviewed the whole workflow. This part applies it to a chosen dataset: selecting the data, sizing the question, and the required submissions.

Project structure

The week-12 lab as project workbench

A scaffold rather than exercises: four sections that mirror the pipeline, each with TODOs to replace with real work and answer cells for written findings.

§1 · Understanding

The question, the data's provenance, and an honest first look (shape, head, info).

§2 · Preparation

Gaps, outliers, merges and reductions, with every decision documented as it is made.

§3–4 · Explore & deliver

Univariate → multivariate → the central comparison → one honest chart and one defensible sentence.

Final project

One question, one dataset, one defensible claim

The aim is the most defensible analysis, not the most impressive.

Choosing a dataset

Four criteria, excluding "interesting"

The most common project failure is a dataset that cannot answer any relevant question, discovered only in week three. Point 4 is the data's provenance: where it came from.

First, confirm it can answer a question

Before committing, load it and write down one question it could answer. If none exists, it is the wrong dataset, however interesting it appears.

1. it exists and you can load it (not "there's an API" — try it) 2. it has enough rows to group by something (hundreds, not dozens) 3. at least one numeric column and one categorical to split it by 4. you can state its provenance — who collected it, when, why # 4 is the one people skip and # then cannot write their method
Scoping

One finished question rather than three started

The scope is how big the question is. The project spans weeks, not months. A complete small analysis demonstrates every skill in this course; an ambitious unfinished one demonstrates none.

The test of a good scope

The question can be stated in one sentence, with the exact columns that answer it named. If either is vague, the scope needs narrowing.

# too big "analyse Philippine education" # still too big "compare school performance by region" # scoped "Do schools in Region VII with more teachers per student report higher completion rates? (n=1,240 schools, DepEd 2024 data)" # one question. named columns. an n.
Deliverables

Three artifacts that check each other

Assessment

Defensibility carries the highest weight

CriterionWhat earns full marks
DefensibilityEvery claim traceable to a computation; limits stated without being asked
CorrectnessThe seven checks were run; the notebook reproduces the numbers shown
MethodCleaning decisions justified, not merely performed; denominators stated
CommunicationTitles state findings; charts labelled; three beats, not fifteen charts
EthicsProvenance given; privacy considered if personal; no claim beyond the evidence
Rubric explained

Each criterion and how to self-check it

CriterionIn plain wordsSelf-check…
DefensibilityEvery stated number can be found in the notebook, and the limits of the data are stated before anyone asksPointing at each number on the slides and finding the cell that computed it; reading the limit sentence aloud
CorrectnessThe numbers are right, and rerunning gives the same onesRestart & Run All, then comparing every figure on the slides with the notebook; running the seven checks
MethodThe reason for each cleaning step is stated, with "out of how many" (the denominator) for every figureFinding a comment with a reason beside every drop or fill; checking the "of what" behind every percentage
CommunicationA new reader understands the point from the titles and charts alonePasting the chart titles into a blank page to see whether they read as a summary; a five-second look by a friend
EthicsThe data source is given, any people in it are protected, and no claim exceeds the evidencePublisher, date and licence under the chart; a k-audit (week 11) if people are in it; checking every verb (week 9)
Dataset selection

Choosing a dataset that can be completed

Data sources

Philippine sources that load reliably

The existence of an API is not the same as a successful download. The download is tested before committing to the question.

Licence

The source and the right to republish must be stated. Both belong in the method section.

PSA (psa.gov.ph) census, labour, prices — the national statistics office data.gov.ph open data portal, mixed quality DepEd / DOH / DPWH portals sector data; often XLSX not CSV BetterGov.ph mirrors cleaned copies of government exports — this course's flood dataset came from here HDX, World Bank, HumData PH subsets, well documented
Evaluating a source

A five-minute source check

Standard

Defensibility over impressiveness

A modest finding, cleanly derived, honestly caveated, and reproducible end-to-end ranks above a spectacular claim with an unreliable pipeline.

The reproducibility test

Runtime → Restart and run all. If it completes top-to-bottom on a fresh kernel (the Python program behind the notebook, with its memory wiped), others can retrace the work. This is why it is §4's last checkbox.

The limits section is graded content

Sample size, confounders (a third factor that moves both things, week 8) that could not be ruled out, and who the data misses: naming them shows competence.

Commit early, commit often

The workbench recommends it; git (a tool that saves every version of a set of files; each saved version is a commit) makes progress and process visible.

Project timeline

Planning backwards from the presentation

WhenDone by thenError it avoids
NowQuestion written; dataset loaded; seven checks runDiscovering in week 3 that the data cannot answer it
+1 weekCleaning decisions made and written downRe-deciding the same thing three times
+2 weeksThe finding computed; the four-sentence claim draftedHaving analysis but no argument
+3 weeksThree charts, titles as sentences; rehearsed once aloudBuilding slides the night before
Before submissionRestart & Run All on a fresh kernelA notebook that runs on only one machine
Peer review

Twenty minutes of critical review

Peer review means a classmate checks the work before submission. Projects are exchanged. The reviewer's task is not encouragement but finding the assumptions the author cannot see.

Four structured questions

An unstructured request for opinions produces "looks good". Specific questions produce findings.

ask your reviewer to answer: 1. What population is this claim about? Can you tell from the slide alone? 2. What did they drop, and why? 3. Could the pattern be explained by something they did not check? 4. Which sentence goes further than the evidence? # question 4 finds the most. # it is almost always the verb.
Modest findings

A common concern in week 11

The concern is usually unfounded, and the remedy is not to seek a more dramatic story.

Null results

A checked null result outweighs an unreliable scoop

A null result is a checked finding that there is no clear difference or relationship. "Completion rates do not differ meaningfully across regions" is a finding. It is checkable and useful, and it scores higher than a dramatic claim that could not be verified.

The marking rewards defensibility

Novelty is not on the rubric. A careful null result meets every criterion that is.

weak, exciting: "Region IX is being neglected!" (n=12, no comparison, causal verb) strong, quiet: "Completion rates range 65.6% to 92.0% across 18 regions (n=34,079). The spread is real but I could not identify a driver: rank correlations with median budget, project count and year are all below 0.2." # the second is publishable. # the first is a retraction.
Developing a flat finding

Three options before abandoning a finding

Part C

Presenting

Eight minutes to establish trust in a finding.

Week 10 covered data storytelling. This part applies it to the final talk: its outline, its timing, and the questions afterwards.

Structure

The week-10 arc as presentation outline

1

Context — 1 min

The question and why it matters. No pipeline talk yet.

2

Journey — 2 min

Data source, the two hardest preparation decisions, and their reasons.

3

Contrast — 3 min

The finding: the strongest chart, with a finding-title and the number in the sentence.

4

Consequence — 1 min

Limits, the next check, and implications for action.

The talk

Eight minutes, five beats

The talk follows the week-10 structure. The timing below is what fits eight minutes. It is the same talk as on the previous slide, with "the check" (the attempt to refute the finding) given its own beat.

One timed rehearsal aloud

Silent rehearsal is always faster than delivery. The first spoken version should not be in front of the class.

1. the question ~1 min why it matters, what data 2. the data + one caveat ~1 min n, source, what it cannot say 3. the finding ~2 min ONE chart, title states it 4. the check ~2 min what you did to try to break it 5. the limit + question ~2 min what it does not show; what you would do next
Preparing for questions

Three predictable questions and one unpredictable

Most questions can be anticipated. For the one that cannot, an honest answer matters most.

Three common questions

"How did you handle missing data?", "Could it be something else?", "How many rows?" — all three should be answered with numbers.

Q: "Why did you drop those rows?" A: "1,240 of 8,900 had no score. They're concentrated in one region, so I kept them and analysed separately." Q: "Couldn't that be X instead?" A: "Yes — I checked by splitting on X and the effect held." ...or: "I couldn't rule it out. That's a limit." Q: anything you don't know A: "I don't know."
Five common failures

Five avoidable project failures

FailureHow it shows upPrevention
No questionA tour of the dataset with no argumentQuestion written before the data is examined
Numbers that disagreeThe slide says 27,664; the notebook says 25,370Every figure generated from the notebook
Unstated denominator"the average" — of what population?Every figure gets its n
Claim exceeds evidenceA causal verb on correlational dataVerb checked; week 9
Cannot be rerunFails on a fresh kernel or another machineRestart & Run All before submission
Question period

Trust is established in the question period

A panel probes the same points the course taught students to check: merges, caveats, confounders, privacy. These questions should be asked in advance.

Known weaknesses

The three weakest points are listed before the talk. Two will likely be asked, and answers can be drawn from the list.

The honest fallback

"I don't know; this is how I would check" is a strong answer. Improvised certainty is weak.

Caveat first

"With only ten weeks of data…" from the presenter indicates rigor. From the panel first, it indicates an oversight.

Presentation day

Common logistical problems

Each of these has occurred in past presentations. None concerns the analysis, and all cost limited time.

PDF backup

Live notebooks can fail during a talk. A PDF of the three charts always opens.

- PDF backup on a USB and emailed to yourself - charts readable from the back (context="talk", not the default: week 10's one-line text scaling) - know your first sentence by heart — the nerves hit hardest there - eight minutes means eight. rehearse with a timer once. - do not open the notebook live unless the demo IS the point
Feedback

Two kinds of feedback

Comments concern either the analysis or the communication. They need different responses, and conflating them wastes both.

"I did not understand" is always valid

Argument cannot create understanding. If a reader missed the point, the chart or sentence failed, regardless of whether the analysis was right.

about the ANALYSIS: "did you check X?" -> go and check X. this is the useful kind; it is free review. about the COMMUNICATION: "I couldn't tell what the chart showed" -> not a defence opportunity. fix the title. about the SCOPE: "why didn't you do Y?" -> "out of scope, here's why" is a complete answer.
Submission checklist

Testing on a fresh clone in a fresh environment

CheckVerification
Notebook runs top to bottomRestart & Run All, on another machine if possible
Every figure on a slide comes from the notebookAll regenerated and compared with the pasted versions
Every number has its nEach figure on the slides checked for its "of what"
The limit is stated, unpromptedIt should appear before anyone asks
Sources cited: publisher, date, licenceUnder the chart, not in an appendix
No data or secrets committedgit ls-files; note that .gitignore does not untrack
After DS 227

This course as a foundation

Further study

Courses that build on this one

This course was designed as a foundation, and later courses assume its content.

The order that works

Statistics before machine learning. A model fit on unexamined data only produces errors faster.

The names, in a few words

SQL
the language for asking a database questions
inferential statistics
how far a sample's numbers hold for everyone
machine learning
programs that learn a prediction rule from data
causal inference
methods for claims about cause, not only association
immediately useful: SQL in depth inferential statistics — confidence intervals, tests experiment design builds on this directly: machine learning (CMSC 173) causal inference spatial analysis (you have coordinates now) the habit that carries: every dataset gets the seven checks, forever
Main lesson

Durable habits, not syntax

Exercise · 8 min

Project workbench · the rest of the session

1 · State the question

One sentence, with the columns named. Show it to someone before writing any code.

2 · Load and run the seven checks

All of them, now. Finding an error today is better than the night before.

3 · Draft the four-sentence claim

Finding, number, method, limit. Even if the number is provisional.

4 · Sketch three charts

On paper, with titles as full sentences. A chart that cannot be titled does not yet show a finding.

Review question

Question (select to reveal the answer)

A notebook computes 25,370 surviving rows. The slide says 27,664. What is the correct response?

A · Use whichever supports the argument better
B · Find out why they differ — one of them is wrong, and the reason is usually a real bug
C · Average them
D · Note the discrepancy in a footnote and continue
B. This happened while building this session: the synthesis script used csv.DictReader (empty fields stay '') while the original used pd.read_csv (empty fields become NaN), so dropna() removed different rows. A discrepancy is information: it showed that the loader changed the answer. Discrepancies are never reconciled by choosing one value.
Summary

The course in four points

Glossary

This week's terms, one line each

Key terms

pipeline
the fixed order of steps from raw data to answer
load
get the data into a table
prepare
fix types, gaps, outliers, joins; remove identifiers
explore
summarise and chart, then try to break the pattern
communicate
one checked finding as a sentence, a chart, a talk
reproducible
anyone can rerun it and get the same numbers
provenance
who collected the data, when, why, what licence
limitation (caveat)
what the data or method cannot show
deliverable
work that is submitted and graded
rubric
the criteria against which work is marked
claim
finding, number, method, limit: four sentences
scope
how big the question is; one sentence, named columns
defensible
survives a sceptic: traced numbers, stated limits
null result
a checked "no clear difference": still a result
peer review
a classmate checks the work before submission
Restart & Run All
wipe memory, run every cell from the top

Also used today (reminders)

KDD / CRISP-DM
the course's process / week 2's project cycle
kernel
the Python program behind a notebook
empty string ''
text with nothing in it; not NaN
assert
stop with an error if a condition is False
skew
lopsidedness; above 0 = long right tail
denominator
the "out of how many"
confounder
a third factor that moves both things
causal verb
"causes", "drives": stronger than correlation
statistical power
the chance the data could detect a real effect
git / commit
version saver / one saved version
fresh clone
a new copy of the project, as another person gets it
environment
the Python and packages where code runs
DS 227 · Conclusion

Closing remarks

Thank you for twelve weeks of careful work. The pipeline can now be applied to questions that matter.

DS 227 · Knowledge Discovery in Data · University of the Philippines Cebu