Python for Data · Unit 4

Unit 4: Series and DataFrames

Build pandas tables and pick out the rows and columns you need.

  • 2–3 hrs
  • Intermediate
  • 6 lessons

Lessons

  1. The SeriesA column with labels attached, and the labels travel with the data. 20–25 min
  2. Building a DataFrameA table is a dictionary of columns that share one index. 20–25 min
  3. Selecting Columns and Rowsloc goes by label, iloc goes by position, and the difference matters. 20–25 min
  4. Adding and Dropping ColumnsA new column is an assignment, and drop returns a new table by default. 20–25 min
  5. dtypes in pandasWhat each column is holding, and how to change it on purpose. 20–25 min
  6. Reading a CSV into pandasOne line replaces the whole of unit 1, and then you check what you got. 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 4 test