MIL-004: Create and export a DataFrame #29

Merged
Tirsvad merged 5 commits from mil-004-create-and-export into main 2026-10-13 09:32:34 +02:00
Owner

Delivers MIL-004: the end of the second lecture and the main flow.

  • src/weather/export.py: create_scores_frame (from a dictionary) and export_frame (DataFrame.to_csv)
  • src/weather/__main__.py: python -m weather prints the results of both lectures; a file is written only with --export PATH; without the pandas extra the csv part still prints and the command exits 1 with a message on stderr
  • src/weather/constants.py: the lecture's students, scores, column names, the day and the message
  • tests/test_export.py, tests/test_main.py

Checks run locally (Python 3.13, Windows): pytest (39 passed), ruff check, ruff format --check, mypy (strict), doxygen Doxyfile (exit 0, no warnings); python -m weather and python -m weather --export out.csv run from an empty scratch folder: the first leaves it empty, the second leaves only out.csv.

Review: RC-012 (Go, mode: autonomous, not independent).

Closes #17
Closes #18
Closes #19
Closes #20

Delivers MIL-004: the end of the second lecture and the main flow. - `src/weather/export.py`: `create_scores_frame` (from a dictionary) and `export_frame` (`DataFrame.to_csv`) - `src/weather/__main__.py`: `python -m weather` prints the results of both lectures; a file is written only with `--export PATH`; without the `pandas` extra the csv part still prints and the command exits 1 with a message on stderr - `src/weather/constants.py`: the lecture's students, scores, column names, the day and the message - `tests/test_export.py`, `tests/test_main.py` Checks run locally (Python 3.13, Windows): `pytest` (39 passed), `ruff check`, `ruff format --check`, `mypy` (strict), `doxygen Doxyfile` (exit 0, no warnings); `python -m weather` and `python -m weather --export out.csv` run from an empty scratch folder: the first leaves it empty, the second leaves only `out.csv`. Review: RC-012 (Go, mode: autonomous, not independent). Closes #17 Closes #18 Closes #19 Closes #20
Tirsvad added 5 commits 2026-10-13 09:32:31 +02:00
Tirsvad merged commit 4f643826c9 into main 2026-10-13 09:32:34 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/025-weather#29