Overview
This documentation site serves as a instruction manual for python basics. It keeps the code concepts, outputs, tasks, and explanations simple for beginners.
The site contains 165 code listings and 47 note cells organized by topic.
How to use this documentation
- Start with the topic you need from the left-hand contents list.
- Read the short concept notes at the top of the page.
- Copy code listings into a notebook, Colab, or a Python file when you want to run them.
- For Colab-only commands, such as Drive mounting and file upload helpers, run the code in Colab or adapt the path/file logic for local VS Code.
Topic map
| Page | What it teaches |
|---|---|
| Python Environment and Colab Workflow | This page covers the first workflow patterns: executing Python, checking the runtime, using loops, storing dictionaries, and mounting Drive in Colab. |
| Image Processing with Pillow and OpenCV | This page demonstrates loading, inspecting, cropping, resizing, blurring, changing pixels, and displaying images with Pillow, Matplotlib, and OpenCV. |
| Local Files, Downloads, Drive, and Uploads | This page collects the file workflow commands from the notebook: writing files, downloading files, saving to Drive, and uploading files in Colab. |
| Dataset Loading: Iris, seaborn, and scikit-learn | This page explains how to load the Iris dataset from seaborn and scikit-learn, inspect dataset metadata, and separate features from labels. |
| NumPy Arrays, Statistics, Splitting, and Iris Plots | This page covers array indexing, slicing, basic statistics, manual train/test splits, train_test_split, class counts, and simple Iris visualizations. |
| Image Datasets and OpenML | This page covers image datasets, the Olivetti faces dataset, OpenML fetching, vector-to-image reshaping, and subplot grids. |
| Generated Data and Coordinate Plots | This page shows how to generate random integer and decimal data, create coordinate pairs, plot points, and select dimensions from generated matrices. |
| Clustering with k-means | This page explains unsupervised clustering with generated points and with the Iris dataset, including centroids, cluster labels, elbow evaluation, and silhouette score. |
| Linear Regression | This page covers simple linear regression with height and weight, train/test splitting, prediction, coefficients, and multivariate regression on car data. |
| Classification with KNN and Gaussian Naive Bayes | This page covers Iris classification with K-Nearest Neighbors and Gaussian Naive Bayes, including accuracy, confusion matrix, precision, recall, F1-score, and classification reports. |