42 in-depth articles — from Excel foundations to production machine learning. Filter by topic or difficulty to find exactly what you need.

Learn how to build production-quality period comparison analysis in pandas using shift and pct_change. This lesson covers MoM, YoY, and rolling metrics for single and multi-segment time series, with realistic business data and a reusable report function you can ship immediately.

Learn how to create new columns in pandas using np.where for conditional flags, pd.cut for numeric bucketing, and .map() for code-to-label substitution. Three essential tools that replace slow loops and Excel workarounds with fast, readable Python.

Wide data is easy to read but hard to analyze. Long data is easy to analyze but hard to present. This lesson teaches you exactly when to use melt, pivot, and unstack in pandas — with realistic examples and a clear workflow for converting between formats.

Silent join bugs — row multiplication, unmatched keys, type mismatches — are the most dangerous errors in data analysis because pandas won't warn you. This lesson gives you a complete diagnostic toolkit: pre-merge key profiling, cardinality analysis, post-merge row count auditing, and defensive merge wrappers that catch problems before they corrupt your analysis.

Learn to compute revenue-weighted averages, percent-of-total share metrics, and fully custom aggregations in pandas groupby. This lesson builds a complete, production-ready sales analytics summary using apply, agg, and transform together.

Learn how to summarize categorical columns in pandas using value_counts() and build two-way contingency tables with pd.crosstab(). This lesson covers normalization, margins, and percentage breakdowns — the tools you need to answer "how is X distributed across Y?" questions quickly and correctly.

Learn to build a production-grade ETL pipeline in pandas that extracts data from CSV files, Excel workbooks, and SQL databases; applies a layered transformation strategy; and loads results to multiple output formats. This lesson covers architecture, error handling, validation, and performance — the full picture for data professionals who need pipelines that actually hold up.

MultiIndex DataFrames from groupby and pivot_table are powerful but consistently confusing — until you understand the structure. This lesson teaches you to select, flatten, stack, and unstack multi-level data through a complete sales analysis project.

Learn how to derive new columns in pandas using three essential tools: np.where for conditional logic, pd.cut for numeric binning, and .map() for lookup-style translation. By the end, you'll be able to transform raw transactional data into analysis-ready features without writing a single loop.

Learn how to build running totals, cumulative averages, and within-group rankings in pandas using cumsum, expanding, and rank. Goes beyond the basics to cover groupby integration, tie-breaking strategies, NaN handling, and a complete sales dashboard project.

Jumping straight into analysis on a new dataset is one of the most common — and costly — mistakes in data work. This lesson teaches you a systematic profiling workflow using pandas: checking shape, completeness, duplicates, distributions, and outliers before a single aggregation runs.

Stop copying and pasting data between spreadsheets. Learn how to automatically find, read, and combine dozens of CSV or Excel files into a single pandas DataFrame using glob, pathlib, and pd.concat — with source tracking built in.