Checking Your Data with assert
assert stops the code with an AssertionError and your message whenever a condition is False, so checks on ranges with between and all, on repeated timestamps and on missing values, gathered in one check_readings function, catch a cleaning step that went wrong every time the cleaning runs.
Updated

- Category
- Data Analysis
- Level
- Journeyman
- Tags
- assert, AssertionError, python