Python for Data · Unit 3

Unit 3: Arrays with numpy

Use numpy arrays to do maths on a whole column at once.

  • 2–3 hrs
  • Intermediate
  • 6 lessons

Lessons

  1. Why Arrays Beat ListsOne type and one block of memory buys arithmetic on the whole column. 20–25 min
  2. Creating Arrays and dtypesWhere an array comes from, and the type it settles on. 20–25 min
  3. Indexing and Slicing ArraysSlices look like list slices and behave differently in one important way. 20–25 min
  4. Boolean MasksA comparison over an array gives an array of answers, and that array selects. 20–25 min
  5. Array Maths and BroadcastingArrays of different shapes can still meet, under one clear rule. 20–25 min
  6. Summing and AxesIn two dimensions, the question is always which way you are collapsing. 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 3 test