
Pandas · Machine learning · Free PDF
Pandas and machine learning cheat sheet
A free one-page cheat sheet (PDF) that takes you from a CSV file to a first machine learning model with pandas and scikit-learn: load, clean, group, split, train and check. No sign-up.
Download PDFWhat is on it
- Loading a CSV and looking at it
- Selecting and filtering rows and columns
- Cleaning: missing values, duplicates and types
- Group by, merge, concat and pivot tables
- Train and test split and turning text into numbers
- Training a first model with scikit-learn
- Checking results and choosing a metric
Good to know: Fit scalers and encoders on the training set only, then apply them to the test set. If the training score is far better than the test score, the model is overfitting.
Questions
Is this pandas cheat sheet free?
Yes. Download the PDF with no sign-up and no email needed.
Do I need to know Python first?
Basic Python helps. The Python cheat sheet on this site covers the syntax used here.
Can I print it?
Yes. It is made to fit on one A4 page.