The first session of the DEPI R5 Professional Data Analyst track: a hands-on introduction to Python built around the mindset of a working data analyst. Every concept is anchored to a realistic scenario β cleaning messy transaction exports, auditing inventory, paginating API results β instead of toy examples.
π Main notebook:
Python-S1.ipynb
print()basics: single, double, and triple quotes- Escape characters
- Printing variables alongside text
- π§ͺ Challenge: Store Receipt Generator
- Naming rules and reserved keywords
- Inspecting Python's keyword list
- π§ͺ Challenge: Monthly Sales Performance Report
- Capturing dynamic user input
- π§ͺ Challenge: Dataset Profile Reporter
- Single-value types:
int,float,str,bool - The empty type:
None - Visual reference: Data Types Big Picture
- π Multiple-choice quick check
- π§ͺ Challenge: Raw Customer Transaction Cleaner
- String methods and cleaning techniques
- Numeric operations,
math, andrandom - π§ͺ Challenge: Annual Revenue Analytics Engine
- Boolean expressions & comparison/logical operators
- Visual reference: Python Flow Control
- π§ͺ Challenge: Transaction Record Validator
if/elif/elsestatements- Inline (ternary)
ifexpressions match-case(Python 3.10+)- π§ͺ Challenges: Smart Order Processing Engine Β· Order Summary Badge Generator
- π Capstone: ShopEasy Analytics β End-of-Day Transaction Audit Pipeline
- Iterable objects: lists, tuples, strings,
range() forloops andwhileloops (condition-based &while True)- Loop control keywords:
break,continue,pass - π§ͺ Challenges:
- Weekly Sales Trend Analyzer
- Customer Feedback Word & Sentiment Scanner
- Multi-Store Inventory Restock Auditor
- API Pagination Simulator
- π Final Capstone: ShopEasy Analytics β Daily Batch Settlement Engine
Each concept follows the same rhythm:
Theory β Live Demo β π§ͺ Real-World Challenge
Challenges are framed as tasks a junior data analyst at ShopEasy Analytics would actually face β cleaning raw exports, validating records, auditing stores, and building settlement pipelines β so the skills map directly onto real analyst work.
| File | Description |
|---|---|
Python-S1.ipynb | Main lecture notebook (the source of truth) |
Python-S1.txt | Plain-text export of the lecture |
Data Types Big Picture.png | Visual reference for Python data types |
Python Flow control.png | Visual reference for flow control |
python_data_types_dashboard.html | Supplementary interactive reference |
Part of the DEPI R5 Professional Data Analyst program.