pandas#
Series: lecture-python-programming
File:
lectures/pandas.mdAudit date: 2026-05-28
Categories audited: writing, math, code, figures, references, links, admonitions (JAX out of scope)
Overall score: 7.8 / 10
Priority: LOW
Score breakdown#
Category |
Score |
One-line note |
|---|---|---|
Writing |
7/10 |
Heading Title Case throughout the H3 layer. |
Math |
N/A |
No math content. |
Code |
8/10 |
|
JAX |
out of scope |
— |
Figures |
7/10 |
Two |
References |
N/A |
No citations. |
Links |
8/10 |
Uses external doc links for |
Admonitions |
9/10 |
Two |
Issues#
Critical#
None found.
High severity#
[qe-writing-006] — Section headings use Title Case rather than sentence case. Examples: line 144
## DataFrames, line 181### Select Data by Position, line 209### Select Data by Conditions, line 294### Apply Method, line 347### Make Changes in DataFrames, line 427### Standardization and Visualization, line 495## On-Line Data Sources, line 514### Accessing Data with requests, line 593### Using wbgapi and yfinance to Access Data, line 627## Exercises. Count: 10 occurrences.
Medium severity#
[qe-fig-001] — Two explicit
figsize=(10, 8)in code-cells inside solution blocks (lines 726, 797). Insidesolution-start/solution-endqe-fig-003 has an exception but qe-fig-001 does not — these are weak style nits.[qe-fig-005] — Code-generated plots (e.g., bar plots at lines 473, 489, 583) lack
name:metadata.
Low severity#
[qe-writing-004] — “On-Line” capitalized at line 495 — modern usage prefers “online”.
[qe-code-003] —
import yfinance as yfplaced inside an exercise body (line 637); pedagogically motivated (only needed for that exercise) but the install at the top makes it available globally.
Strengths#
Lecture title “Pandas” follows qe-writing-006.
Some headings already use sentence case (e.g., “Series”).
Clean code-cell usage, inline backtick code, one-sentence paragraphs.
Non-Anaconda
wbgapiandyfinancecorrectly installed at top withhide-outputper qe-code-003.All axis labels are lowercase or use proper-noun acronyms (e.g., ‘GDP per capita’, ‘%’) per qe-fig-006.
The one
ax.set_title(...)use is insidesolution-start/solution-endso qualifies for the qe-fig-003 exception.Exercise/solution pairs use gated syntax per qe-admon-001 with
:class: dropdownper qe-admon-002 and:label:per qe-admon-005.
Recommended actions#
Convert section headings to sentence case (“DataFrames”, “Select data by position”, “Select data by conditions”, “Apply method”, “Make changes in DataFrames”, “Standardization and visualization”, “Online data sources”, “Accessing data with
requests”, “Usingwbgapiandyfinanceto access data”).Drop the
figsize=overrides in the solution blocks unless visually necessary.Add
name:metadata to a few representative code-generated bar plots.