Python Data Foundations Documentation

A plain documentation-style guide for Python, data handling, visualization, and machine learning basics.

Overview

This documentation site serves as an instruction manual for Python basics, data handling, visualization, machine learning, and introductory deep learning workflows.

The site contains 290 code listings organized by topic.

How to use this documentation

  1. Start with the topic you need from the left-hand contents list.
  2. Read the short concept notes at the top of the page.
  3. Copy code listings into a notebook, Colab, or a Python file when you want to run them.
  4. For Colab-only commands, such as Drive mounting, shell commands, package installs, and file upload helpers, run the code in Colab or adapt the path/file logic for local VS Code.

Topic map

PageWhat it teaches
Python Environment and Colab WorkflowThis page covers executing Python, checking the runtime, using loops, storing dictionaries, and mounting Drive in Colab.
Image Processing with Pillow and OpenCVThis page demonstrates loading, inspecting, cropping, resizing, blurring, changing pixels, and displaying images with Pillow, Matplotlib, and OpenCV.
Local Files, Downloads, Drive, and UploadsThis page collects writing files, downloading files, saving to Drive, and uploading files in Colab.
Dataset Loading: Iris, seaborn, and scikit-learnThis page explains how to load the Iris dataset from seaborn and scikit-learn, inspect metadata, and separate features from labels.
NumPy Arrays, Statistics, Splitting, and Iris PlotsThis page covers array indexing, slicing, basic statistics, manual train/test splits, train_test_split, class counts, and simple Iris visualizations.
Image Datasets and OpenMLThis page covers image datasets, Olivetti faces, OpenML fetching, vector-to-image reshaping, and subplot grids.
Generated Data and Coordinate PlotsThis page shows random integer and decimal data, coordinate pairs, point plots, and selected dimensions from generated matrices.
Clustering with k-meansThis page explains unsupervised clustering with generated points and Iris data, including centroids, cluster labels, elbow evaluation, and silhouette score.
Linear RegressionThis page covers simple and multivariate linear regression, train/test splitting, prediction, coefficients, and normalization.
Classification with KNN and Gaussian Naive BayesThis page covers Iris classification with KNN and Gaussian Naive Bayes, including accuracy, confusion matrix, precision, recall, F1-score, and reports.
Neural Networks with Fashion MNISTThis page covers dense neural networks on Fashion MNIST, including normalization, model layers, training history, predictions, and classification metrics.
Convolutional Neural Networks with CIFAR-10This page covers CNN image classification on CIFAR-10, including convolution blocks, dropout, early stopping, model saving, and custom-image prediction.
Autoencoders for MNIST ReconstructionThis page covers simple, denoising, and convolutional autoencoders for MNIST image reconstruction.
Transfer Learning and Model Zoo WorkflowsThis page covers transfer learning with ResNet50, frozen pretrained bases, TensorFlow Hub, PyTorch models, and YOLO pose tracking in Colab.