A collection of focused projects for loading, exploring, transforming, filtering, sorting, and exporting structured data in Python.
This repository brings together four practical capstone exercises that use common business data formats. Each notebook follows a clear workflow: load source data, inspect its structure, answer questions with Python, and save useful results for further use.
The projects demonstrate how the same analytical mindset transfers across flat files, spreadsheets, semi-structured JSON, and relational databases.
| Capstone | Data source | What it demonstrates | Key files |
|---|---|---|---|
| Student Marks | CSV | DataFrame exploration, filtering, sorting, and exporting transformed results | Notebook · Source data |
| Product Analysis | Excel | Reading workbooks, inspecting product data, selecting categories, and exporting expensive products | Notebook · Source data |
| Employee Records | JSON | Loading nested records, transforming JSON data into tabular form, and querying employee information | Notebook · Source data |
| Organisation Database | SQLite | Connecting to a database, inspecting tables, and using SQL queries to retrieve organisation data | Notebook · Database |
- Reading and writing CSV, Excel, JSON, and SQLite data
- Exploring datasets with
pandas - Selecting rows and columns with expressive conditions
- Sorting and grouping tabular data
- Working with DataFrames and database results
- Exporting analysis outputs to reusable files
- Building repeatable notebook-based data workflows
.
├── csv_capstone/
│ ├── students.ipynb
│ ├── student_marks.csv
│ ├── student_sorted_df.csv
│ └── students_sorted_csv.csv
├── excel_capstone/
│ ├── product.ipynb
│ ├── product_catalog.xlsx
│ └── expensive_prod.xlsx
├── json_capstone/
│ ├── employee.ipynb
│ ├── employees.json
│ └── finance_json.json
├── sqlite_capstone/
│ ├── organisation.ipynb
│ └── organisation.db
├── requirements.txt
└── readme.md
git clone <repository-url>
cd python_tddpython3 -m venv .venv
source .venv/bin/activateOn Windows, activate the environment with:
.venv\Scripts\Activate.ps1python -m pip install --upgrade pip
python -m pip install -r requirements.txtjupyter notebookOpen any capstone notebook and run the cells from top to bottom. VS Code users can open the repository directly and run the notebooks with the Jupyter extension.
The analysis produces reusable files alongside the source data, including sorted student datasets and filtered Excel results. Keeping these outputs in each capstone folder makes the transformation from raw input to processed data easy to follow.
| Tool | Purpose |
|---|---|
| Python | Core programming language |
| Jupyter Notebook | Interactive analysis and documentation |
| pandas | Data loading, transformation, and analysis |
| openpyxl | Excel workbook support |
| SQLite | Relational data storage and querying |
The project is designed as a practical foundation for data analysis. It focuses on writing readable steps, understanding how data is shaped in different storage formats, and producing results that can be inspected or reused outside the notebook.
Built as a practical Python data analysis portfolio.