Cheat sheets
Python cheat sheets
One page each, written for modern Python. Keep them open while you code, or print them as a PDF.
Python basics
Python basics on one page: variables, strings and f-strings, lists, dicts, sets, conditions, loops, functions, files and errors — modern Python 3 syntax.
pandas
pandas on one page: create and load DataFrames, inspect, select and filter, add columns, groupby and aggregate, sort, merge, handle missing values and save results.
Python for AI
Python for AI on one page: NumPy arrays, matplotlib charts, scikit-learn train/test/predict, calling an LLM API, structured output with Pydantic, and a minimal RAG loop.