Machine learning

Stage 1 of 7 · 8 lessons · ~3 months

Python for data

The language and the libraries every ML codebase leans on: core Python first, then NumPy arrays, pandas DataFrames and plotting, working in Jupyter notebooks.

Start: Core Python for data work

Lessons· one lesson for each topic, in this order

  1. 1Core Python for data work
  2. 2Working in Jupyter notebooks
  3. 3NumPy arrays, shapes and indexing
  4. 4Vectorisation and broadcasting
  5. 5pandas DataFrames: selecting, filtering and cleaning
  6. 6groupby, merge and reshaping
  7. 7Charts that make one clear point
  8. 8CSV, JSON and Parquet

Start with· follow one of these

Practise

  • The Python, Pandas and Data Visualization micro courses, in browser notebooks

Keep handy

  • Start with 10 minutes to pandas, then look up indexing, groupby and reshaping

  • Quick NumPy, pandas and Matplotlib lookups with a try-it editor

Before moving on: Take a public CSV of at least 50,000 rows, answer five questions about it with pandas using no Python loops over rows, and produce three charts that each make one clear point.

Tauseef's advice
Get comfortable with plain Python functions, lists and dictionaries before you touch pandas, or every pandas error will look like magic. Once you are in pandas, if you are writing a for loop over rows, stop and look for the vectorised way.

Mark this stage as not done?