Testing pandas Functions with Small Tables
A real week of data is too big to check by hand, so a test runs the function on a few rows made by hand, where the right answer is clear, and checks one number, a column or a whole table with assert_frame_equal, then the empty table, the missing value and the table it was given.
Updated

- Category
- Data Analysis
- Level
- Journeyman
- Tags
- assert_frame_equal(), Edge Case, pytest, python, tmp_path