One idea
Cleaning is not only fixing bad values. You also reduce the table to the rows and summaries your project needs.
Use filters to choose rows. Use groupby to split rows into groups, calculate numbers, and combine the result into a new table.
When to filter
Filter when a row should not be part of an answer. For example, keep only paid orders, completed rides, valid attendance records, or students from one department.
A filter should be written as a clear condition. If you cannot explain the condition in one sentence, split it into smaller filters.