SigmaAnalytics & Tech
C1PythonBeginnerAbout 120 min to complete

Series

The labelled one-dimensional array — and the automatic alignment that makes pandas fundamentally different from NumPy.

Notebook

About 120 minutes to complete

Enrol to read the notebook and download it to run.

What this module covers

The labelled one-dimensional array — and the automatic alignment that makes pandas fundamentally different from NumPy.

By the end of it

  • Create Series from lists, dicts, arrays, and scalars, with explicit indexes
  • Explain what the index is and why it makes a Series more than an array
  • Select values by label (.loc), by position (.iloc), and by boolean mask
  • Predict the result of arithmetic between Series with mismatched indexes
  • Handle missing data with isna, fillna, dropna, and understand NaN propagation
  • Apply the essential methods: value_counts, sort_values, rank, describe, map
  • Use the .str and .dt accessors for text and date columns
  • Distinguish .map, .apply, and vectorised operations, and choose correctly