Python Practical Guide Series
From Python basics to web development, data analysis, and automation
A comprehensive guide for Python developers.
Total 23 posts
-
Setting Up Python: Installing Python 3, pip, venv, VS Code or PyCharm and a Clean Project Layout
Set up Python on Windows/Mac/Linux: install Python 3, pip, venv, VS Code, PyCharm, requirements.txt, Poetry, and a clean project layout for beginners.
-
Python Basic Syntax: Indentation Errors, Truthiness, Floor Division, f-strings and match
Python syntax that trips up newcomers: IndentationError and TabError, truthy values, chained comparisons, negative floor division, f-string specs and match.
-
Python Data Types Explained: Mutability, Aliasing, Float Rounding, is vs == and Truthiness
How Python data types really behave: names vs objects, list aliasing and copies, int vs float precision, round() and Decimal, str immutability, dicts, is vs ==.
-
Python Functions: Parameters, Defaults, Closures, and the Traps Behind Them
How Python functions really behave: positional-only and keyword-only parameters, the mutable default trap, late-binding closures, nonlocal, and functools.wraps.
-
Python Classes: Class vs Instance Attributes, super() and the MRO, @property and Dataclasses
How Python classes work: the shared mutable class attribute bug, __new__ vs __init__, super() and the MRO, @property, dataclasses and __hash__.
-
Python Modules and Packages: import, sys.path, pip and venv
Organize Python code into modules and packages: import styles, relative imports, __init__.py, pip, requirements.txt, venv and fixing ModuleNotFoundError.
-
Python File Handling | Read, Write, CSV, JSON, and pathlib
Learn Python file I/O: text files, CSV with csv module, JSON with json, pathlib paths, encoding, and the with statement—practical patterns included.
-
Python Exception Handling: try/except/else/finally, Raising Errors and Custom Exceptions
Learn Python exceptions: try-except-else-finally, raising errors, custom exception classes, and safe patterns for files, I/O, and retries—with examples.
-
Python Comprehensions and Generator Expressions: Scope, Late Binding, Laziness and Memory
How Python comprehensions really behave: clause order, Python 3 scoping and the class-body trap, late-binding lambdas, one-shot generators, walrus, and memory.
-
Python Decorators: Writing @decorator Functions, Decorator Factories and functools.wraps
Write Python decorators for logging, caching, auth and retries, build decorator factories that take arguments, and keep metadata with functools.wraps.
-
Flask Basics | Get Started with the Python Web Framework
Start with Flask: routes, Jinja2 templates, forms, JSON APIs, sessions, SQLAlchemy and Blueprints, then deploy with Gunicorn and Docker and compare with FastAPI.
-
Django from Scratch: Models, Migrations, Views, URLs, Templates and the Admin
Learn Django from scratch: project layout, models, migrations, function and class-based views, URLs, templates, and the admin site—with runnable examples.
-
Python REST APIs | Build API Servers with Flask and Django
Design RESTful APIs in Python: HTTP verbs, resource URLs, Flask CRUD examples, Django REST Framework, JWT auth, error handling, and production-minded tips.
-
Python Databases | SQLite, PostgreSQL, and ORMs Explained
Work with databases in Python: sqlite3, SQLAlchemy models, CRUD, relationships, and a Flask + SQLAlchemy API example.
-
Deploying a Python Web App: Gunicorn, Docker, Heroku and EC2 with Nginx
Deploy Flask or Django to production: env config, Gunicorn workers and timeouts, Docker and Compose, Heroku, EC2 with Nginx and systemd, and 502 errors.
-
Pandas Basics: Series and DataFrames, Selecting, groupby and merge on Real Data
Pandas basics for Python: Series and DataFrame, I/O, filtering, groupby, merge, and real-world patterns.
-
NumPy Basics: Arrays, Broadcasting, Views vs Copies, and dtype Pitfalls
Learn NumPy by how it actually behaves: ndarray memory layout, vectorization, broadcasting rules with real errors, views vs copies, axis, and uint8 overflow.
-
Matplotlib Basics: Line, Bar, Histogram and Scatter Plots, Subplots and Report-Ready Styling
Matplotlib tutorial: line plots, bar charts, histograms, scatter, subplots, styling, and report-ready figures.
-
Data Preprocessing in Python: Missing Values, Outliers, Scaling and Encoding
Python data preprocessing: handle missing data, IQR/Z-score outliers, Min-Max and StandardScaler, categorical encoding.
-
Hands-on Data Analysis with Python | Pandas Workflows
Practical Python data analysis: load data, EDA with plots, groupby and pivot tables, time series with resample and rolling, correlation heatmaps.
-
Python File Automation | Organize, Rename, and Back Up Files
Automate file workflows in Python: find and rename files, organize by extension, backups with shutil, duplicate detection, and log cleanup.
-
Python Web Scraping | BeautifulSoup and Selenium Explained
Python web scraping tutorial: requests, BeautifulSoup for static HTML, Selenium for dynamic pages, ethics (robots.txt, rate limits), and CSV.
-
Python Task Scheduling | Automate Jobs with schedule
Schedule Python jobs with schedule and APScheduler: cron syntax, timezones, misfire handling, persistence, and multi-worker duplicate-run pitfalls.