Python for Data · Unit 6

Unit 6: Filtering and Deriving

Filter pandas rows with conditions and add columns that answer questions.

  • 2–3 hrs
  • Intermediate
  • 6 lessons

Lessons

  1. Filtering with MasksThe same idea as numpy, applied to whole rows. 20–25 min
  2. isin, between and queryThree ways to say a condition that reads like the question. 20–25 min
  3. Derived ColumnsThe column that answers your question usually is not in the file. 20–25 min
  4. apply, and When Not ToA general escape hatch that is slower than the thing it usually replaces. 20–25 min
  5. Binning ValuesTurning a measurement into a band you can count. 20–25 min
  6. Sorting and Top NOrdering a table, and taking the few rows that matter. 20–25 min
  7. End of unit test

    Ten multiple choice questions and one free response problem. You need 70 to finish the unit. Retakes are unlimited and your best score is the one that counts.

    Take the Unit 6 test