Python for Data Analysis Roadmap

Python is the default language for data analysis. Analysts use it to load data from files, databases and APIs, clean it, explore it, test ideas and present results as charts and reports. The same skills lead into data science, data engineering and machine learning.

This roadmap takes you from setting up an environment to explaining your analysis in an interview. It starts with the Python you need, then covers NumPy and pandas, cleaning, exploratory analysis and statistics, visualisation, getting data from databases and the web, and scaling up when data grows. Every topic has a priority, a short explanation and one exercise.

When you finish you will be able to take a messy data set, produce a clean and documented analysis with clear charts, and answer the pandas, statistics and SQL questions asked in analyst interviews. See the Data Analyst page for the full job, and coding practice for coding practice.

Level
Beginner to advanced
Time
12-16 weeks at about 8 hours a week
Scope
62 topics in 9 stages
Before you start
Basic computer skills and comfort with spreadsheets; School-level maths: averages, percentages and graphs; Helpful but not required: Python Roadmap fundamentals and SQL Roadmap

What you will be able to do

  • Set up reproducible Python environments and work in notebooks
  • Use NumPy and pandas to select, group, join and reshape data
  • Clean missing, inconsistent and extreme values with justified choices
  • Run an exploratory analysis and summarise it with correct statistics
  • Build clear static and interactive charts with Matplotlib, Seaborn and Plotly
  • Load data from SQL databases, APIs and files, including Parquet
  • Turn a notebook into a repeatable script or pipeline

The roadmap at a glance

  1. Stage 1Setup and ToolsBeginner · 1 week · 4 topics
  2. Stage 2Python EssentialsBeginner · 2 weeks · 10 topics
  3. Stage 3NumPy and Numerical ComputingBeginner · 2 weeks · 6 topics
  4. Stage 4pandas for TablesBeginner · 3-4 weeks · 9 topics
  5. Stage 5Data CleaningIntermediate · 2 weeks · 6 topics
  6. Stage 6Exploratory Data Analysis and StatisticsIntermediate · 2-3 weeks · 8 topics
  7. Stage 7Data VisualisationIntermediate · 2-3 weeks · 8 topics
  8. Stage 8Getting Data from Databases and the WebIntermediate · 2 weeks · 6 topics
  9. Stage 9Scale, Geospatial Data and PipelinesAdvanced · 2-3 weeks · 5 topics

Stage 1 Setup and Tools

Beginner1 week4 topics

Goal. Set up an isolated environment, run notebooks and read a first file.

Introduction to Python for Data Analysis Core

Data analysis means turning raw records into answers: how many orders last month, which customers churn, whether a change helped. Python is the common choice because it reads clearly and has libraries for every step: NumPy for numbers, pandas for tables, Matplotlib and Seaborn for charts, and Jupyter for notebooks that mix code, output and notes.

A typical project loads data, checks it, cleans it, explores it, summarises it and presents it. This roadmap follows that order. If you already know Python well, skim the first stage and start at NumPy. For the language itself in depth, see the Python Roadmap roadmap.

Practice. Write the five steps of an analysis project and name one question you could answer with data you have.

Environment Setup: pip, conda, uv and venv Core

Keep each project in its own isolated environment so that package versions do not clash. virtualenv / venv is built into Python: python -m venv .venv, then activate it and use pip. pip installs packages from the Python Package Index: pip install pandas matplotlib.

conda, from Anaconda or Miniconda, manages Python itself and compiled libraries and suits scientific work. uv is a fast newer tool that creates environments and installs packages, in the style of uv venv and uv pip install pandas, and can lock versions in pyproject.toml.

Record dependencies in requirements.txt or a lock file so teammates can recreate the setup. Never install into the system Python.

Practice. Create a fresh environment with venv, install pandas and write the package list to a file.

Editors and Notebooks: VS Code, JupyterLab and Google Colab Core

JupyterLab runs notebooks in the browser: cells of code with output beneath, plus Markdown text. It is ideal for exploration. Restart the kernel and run all cells before sharing, since hidden state from cells run out of order is the classic notebook bug.

VS Code edits scripts and notebooks, with a debugger, Git integration and the Python and Jupyter extensions. Google Colab gives a free hosted notebook with nothing to install, useful for learning and sharing, with limits on session time and files that disappear between sessions.

A good habit: explore in notebooks, then move reusable code into .py files you can test and import.

Practice. Open a notebook in JupyterLab or Colab, load a small CSV and show the first five rows.

Reading Local Files, CSV and JSON Core

Reading Local Files starts with open: with open("data.txt") as f: text = f.read(). The with block closes the file for you. Give an encoding for text, encoding="utf-8".

The csv module reads rows as lists or dictionaries (csv.DictReader). The json module turns JSON into dictionaries and lists: json.load(f), and json.dump(obj, f) writes it. Use pathlib.Path for paths that work on every operating system.

For tables you will usually skip these and call pd.read_csv or pd.read_json, but the standard tools are what you need for odd formats and small scripts.

Practice. Read a JSON file of records, filter them in plain Python and write the result to a CSV.

Stage 2 Python Essentials

Beginner2 weeks10 topics

Goal. Write small Python programs that clean, loop over and summarise data.

Numbers, Booleans, Casting Types and Printing Variables Core

Integers are whole numbers, floats are decimals and booleans are True or False. Floats are approximate: 0.1 + 0.2 is not exactly 0.3, so compare with a tolerance. Casting Types converts between them: int("42"), float("3.5"), str(7), bool(0). Type Casting fails on bad input with a ValueError, which is common with messy data.

Printing Variables uses print(x) or f-strings: print(f"Mean: {mean:.2f}"). In notebooks the last expression of a cell is shown automatically.

Arithmetic operators are + - * / // % **; / always gives a float and // is floor division.

Practice. Convert a list of strings like "12", "7.5" and "n/a" to numbers, handling the failure.

Operators: Arithmetic, Comparison and Logical Core

Operators combine values. Arithmetic works on numbers. Comparison (== != < <= > >=) gives booleans. Logical operators and, or and not combine booleans. Remember == tests equality and = assigns.

In pandas and NumPy, logical operations on whole arrays use &, | and ~, not and, or and not, and each comparison needs brackets: (df.age > 30) & (df.city == "Pune"). Using and raises an error about ambiguous truth values, a very common beginner stumble.

Practice. Write three comparisons combined with and, or and not, then rewrite them with array operators on a NumPy array.

Conditionals and Loops Core

if, elif and else choose between paths. for loops walk over a sequence and while loops repeat until a condition fails. break stops a loop and continue skips to the next item.

total = 0
for price in [10.5, 20, 7.25]:
    if price > 8:
        total += price
print(total)

Loops are fine for small tasks. With pandas or NumPy, vectorised operations are usually shorter and far faster than looping over rows, so reach for a loop only when no built-in operation fits.

Practice. Write a loop that counts how many values in a list exceed the mean.

Lists, Tuples, Sets and Dictionaries Core

Lists are ordered and changeable: [3, 1, 2]. Tuples are ordered and fixed: (52.5, 13.4). Sets hold unique values with fast membership tests: {"a", "b"}. Dictionaries map keys to values: {"name": "Asha", "age": 31}.

You will use dictionaries constantly: a record from a JSON API is a dictionary, and a DataFrame can be built from a dictionary of columns. Use .get(key, default) to avoid a KeyError, and collections.Counter to count items.

Choose by need: order and duplicates mean a list, uniqueness means a set, lookup by name means a dictionary.

Practice. Count word frequencies in a paragraph with a dictionary and print the top three.

Functions: Defining, args & kwargs, Lambda Functions and Built-ins Core

Defining Functions packages logic for reuse: def zscore(x, mean, std): return (x - mean) / std. Add default values and docstrings. *args collects extra positional arguments into a tuple and **kwargs collects keyword arguments into a dictionary, which is how many library functions accept flexible options.

A lambda is a one-line anonymous function, handy as a key: sorted(rows, key=lambda r: r["age"]) and in df.apply. Built-in Functions worth knowing: len, sum, min, max, sorted, enumerate, zip, range, any and all. Difference between Functions and Methods: a method belongs to an object, such as my_list.append(1).

Practice. Write a function with a default argument and **kwargs, then use a lambda to sort records.

List Comprehensions Core

A list comprehension builds a list from another in one line: evens_squared = [n ** 2 for n in values if n % 2 == 0]. Read it as "n squared for each n in values, when n is even". Dictionary and set comprehensions use the same form with braces.

They are shorter and often faster than a loop with append. Stop when a comprehension needs two nested conditions or becomes hard to read; a plain loop is better then. Generator expressions with round brackets produce values lazily, which helps with large data: sum(x * x for x in range(10**6)).

Practice. Turn a loop that cleans a list of strings into a comprehension.

Strings: Working with Strings, strip, replace, split Core

Working with Strings is daily work in data analysis, because real data has stray spaces, mixed case and odd separators. strip() removes whitespace at the ends, lower() and upper() change case, replace("a", "b") swaps text and split(",") breaks a string into a list. "-".join(parts) joins a list back.

raw = "  New York, NY  "
city, state = [p.strip() for p in raw.split(",")]

Strings are immutable: methods return new strings. Use f-strings to build text and slicing like s[:3] to take parts. Later, pandas string methods apply the same operations to a whole column.

Practice. Clean a list of messy names by trimming, fixing case and splitting into first and last name.

Regular Expressions with re Recommended

The re module finds patterns in text: re.search, re.findall, re.sub, re.compile. Common pieces: \d digit, \w word character, + one or more, * zero or more, ? optional, [] a set, () a capture group.

import re
re.findall(r"\d{3}-\d{4}", "call 555-1234 or 555-9876")

Always use raw strings (r"..."). Regular expressions suit extracting phone numbers, ids and dates from text, but they become unreadable fast, so keep them short and comment them. pandas offers str.extract and str.contains with the same syntax.

Practice. Extract all email addresses from a block of text.

Random Module Optional

The random module gives pseudo-random numbers: random.random(), random.randint(1, 6), random.choice(items), random.sample(items, k) and random.shuffle(items). Set random.seed(42) to make results repeatable, which matters for tests and for sharing analysis.

For arrays and statistics use NumPy's generator, rng = np.random.default_rng(42), with rng.normal, rng.integers and rng.choice. Pseudo-random numbers are not safe for security; use the secrets module for tokens.

Practice. Simulate 1,000 dice rolls with a fixed seed and count each face.

OOP for Data Analysis Recommended

Object-oriented programming groups data and functions in classes. You do not need heavy design for analysis, but you must read it: a DataFrame is an object with methods such as df.head(), and scikit-learn models follow a pattern of fit and predict methods.

class Dataset:
    def __init__(self, path):
        self.path = path
    def load(self):
        return pd.read_csv(self.path)

Writing a small class helps when you repeat the same load-clean-summarise steps for several files, or when you build a reusable pipeline. Otherwise, plain functions are simpler and easier to test.

Practice. Write a class that loads a CSV, drops duplicates and reports row counts.

Stage 3 NumPy and Numerical Computing

Beginner2 weeks6 topics

Goal. Use NumPy arrays for fast, vectorised calculations and know where SciPy fits.

NumPy Core

NumPy is the foundation of numerical Python. It provides the n-dimensional array and fast functions that work on whole arrays at once. pandas, SciPy, scikit-learn and Matplotlib all build on it.

It is fast because arrays hold one type in contiguous memory and loops run in compiled code. Adding two million-element arrays takes a few milliseconds, where a Python loop takes seconds. Import it by convention as import numpy as np.

Learn it for three reasons: it explains why pandas behaves as it does, it is the language of machine learning code, and numerical work outside tables, such as images or simulations, needs it directly.

Practice. Time summing a million numbers in a Python loop and with np.sum.

Arrays and ndarray Core

The ndarray is NumPy's array type. Make one with np.array([1, 2, 3]), np.zeros((3, 4)), np.ones, np.arange(0, 10, 2) or np.linspace(0, 1, 5). Key attributes are shape, ndim, dtype and size.

a = np.arange(12).reshape(3, 4)
a.shape   # (3, 4)
a.dtype   # int64

All elements share one dtype, such as int64 or float64. Mixing types upcasts silently, so np.array([1, 2.5]) becomes floats. Reshape changes layout without copying data. Use astype to convert. Two-dimensional arrays are like tables of one type, and three or more suit images or batches.

Practice. Create a 3 by 4 array, print its shape and dtype, and reshape it to 2 by 6.

Indexing and Slicing Core

Indexing starts at zero. a[1, 2] takes one element of a 2-D array, a[0] takes a row, a[:, 1] takes a column and a[1:3, ::2] slices ranges with steps. Slices are views, not copies: changing a slice changes the original unless you call .copy().

Boolean masks select by condition: a[a > 5]. Fancy indexing uses a list of positions: a[[0, 2]]. Assigning through a mask changes matching elements: a[a < 0] = 0.

The same ideas carry into pandas through .loc and .iloc, so time spent here pays back twice.

Practice. From a random 5 by 5 array, select values above the mean and replace negative values with zero.

Array Operations and Broadcasting Core

Operators act element by element: a + b, a * 2, a ** 2, a > 3. Universal functions such as np.sqrt, np.exp and np.log do the same. Aggregations like sum, mean, std, min, max take an axis argument: a.mean(axis=0) gives column means and axis=1 gives row means.

Broadcasting lets arrays of different shapes combine when their shapes are compatible, comparing from the last dimension: a (3, 4) array plus a (4,) array adds the vector to every row. This replaces most loops.

scaled = (a - a.mean(axis=0)) / a.std(axis=0)

Practice. Standardise each column of a 100 by 3 array to mean zero and unit standard deviation.

Linear Algebra Basics Recommended

Machine learning and many statistics rely on linear algebra. In NumPy a vector is a 1-D array and a matrix is a 2-D array. Learn the dot product np.dot(a, b) or a @ b, matrix multiplication, transpose a.T, the identity matrix np.eye, the inverse np.linalg.inv, the determinant np.linalg.det and solving Ax = b with np.linalg.solve.

A = np.array([[2, 1], [1, 3]])
b = np.array([3, 5])
x = np.linalg.solve(A, b)

Eigenvalues (np.linalg.eig) and singular value decomposition (np.linalg.svd) appear in principal component analysis. Prefer solve to computing an inverse, which is slower and less accurate.

Practice. Solve a small system of equations with np.linalg.solve and check the answer by multiplying back.

SciPy Recommended

SciPy adds scientific routines on top of NumPy. The parts a data analyst meets most are scipy.stats (distributions, t-tests, chi-squared tests, correlation), scipy.optimize (curve fitting and minimisation), scipy.interpolate, scipy.sparse (matrices that are mostly zero) and scipy.spatial (distances).

from scipy import stats
t, p = stats.ttest_ind(group_a, group_b)

Understand what a p-value says before you report one: it is the probability of seeing a result at least this extreme if there were no real effect, not the probability that the hypothesis is true.

Practice. Run a two-sample t-test on two generated groups and explain the p-value in a sentence.

Stage 4 pandas for Tables

Beginner3-4 weeks9 topics

Goal. Load, select, combine, reshape and summarise tabular data in pandas.

Pandas Core

pandas is the main library for tabular data in Python. It gives you labelled columns, mixed types, missing value handling, fast grouping and joins, and readers for most formats. Import it as import pandas as pd.

Think of pandas as a spreadsheet and a SQL engine in code, with the repeatability of a script. Analysts spend much of their time here, so aim for fluency: you should be able to load a file, answer a question about it and explain the steps.

Recent versions (2.x) improved performance and added optional Arrow-backed types; copy-on-write behaviour is becoming the default, so avoid code that relies on changing a copy by accident.

Practice. Load any CSV and write down five questions pandas could answer about it.

Series and DataFrame Core

A Series is one labelled column: values plus an index. A DataFrame is a table of Series sharing an index. Build one from a dictionary:

df = pd.DataFrame({"city": ["Pune", "Oslo"], "temp": [31, 4]})
df.head(); df.shape; df.dtypes; df.info(); df.describe()

info() shows columns, types and non-null counts; describe() shows summary statistics. Select a column with df["temp"], several with df[["city", "temp"]]. Add a column with df["temp_f"] = df["temp"] * 9 / 5 + 32. Learn to read the index, since many operations align on it and surprise people when labels differ.

Practice. Build a DataFrame of five rows by hand and add a computed column.

Reading Data: CSV, Excel, JSON and Parquet Core

pd.read_csv("file.csv") is the workhorse, with options such as sep, usecols, dtype, parse_dates, na_values and nrows. For big files, read in chunks with chunksize. Excel needs pd.read_excel("book.xlsx", sheet_name="Sales") and the openpyxl package. pd.read_json handles JSON records; pd.json_normalize flattens nested JSON.

Parquet is a compressed column-oriented binary format: df.to_parquet("data.parquet") and pd.read_parquet. It is smaller, much faster to read, and keeps column types, so prefer it for intermediate files. Writing mirrors reading: to_csv(index=False), to_excel, to_json.

Practice. Save a data set as CSV and Parquet, and compare file size and load time.

Reading Web Data and Excel in Practice Recommended

pandas can read from a URL directly: pd.read_csv("<address>"), and pd.read_html returns a list of DataFrames from tables on a page, which is quick for simple pages. Pass a user agent through the requests library when a site rejects plain requests.

Excel files from business users are messy: titles above the header, merged cells, several sheets. Use header=, skiprows= and usecols= to pick the real table, and pd.ExcelFile to list sheets. Never trust types: dates may come as text and numbers as strings with commas.

Practice. Read the largest table from a web page with read_html and clean its column names.

Selecting and Filtering: Filtering and Querying Core

.loc selects by label and .iloc by position: df.loc[df["age"] > 30, ["name", "age"]] and df.iloc[0:5, 0:2]. Boolean masks combine with &, |, ~, and isin tests membership: df[df["city"].isin(["Pune", "Oslo"])].

df.query("age > 30 and city == 'Pune'") is a readable alternative. Sort with sort_values("age", ascending=False), remove duplicates with drop_duplicates() and take the top rows with nlargest.

Chained indexing such as df[df.a > 1]["b"] = 0 may change a copy and trigger a warning. Use one .loc call instead: df.loc[df.a > 1, "b"] = 0.

Practice. Select the ten highest-value orders from a table in two different ways.

Groupby and Aggregation Core

A group-by cuts the rows into pieces by key, runs a calculation on every piece and stitches the answers into one result. Aggregation turns each piece into a few numbers.

df.groupby("region")["sales"].sum()
df.groupby(["region", "month"]).agg(total=("sales", "sum"), orders=("id", "count"))

Named aggregation, as in agg(total=("sales", "sum")), gives clear output column names. transform returns a result the same length as the input, useful for percentage of group total: df["sales"] / df.groupby("region")["sales"].transform("sum"). pivot_table is a groupby shown as a grid. Reset the index with reset_index() when you want a flat table again.

Practice. Compute total, average and count of sales by region and month, then each row's share of its region.

Merging and Joining Core

pd.merge(left, right, on="customer_id", how="left") joins tables on keys, the same idea as SQL joins: inner keeps matches only, left keeps all left rows, right, and outer keeps everything. Use left_on and right_on for different column names, and validate="one_to_many" to catch unexpected duplicates. pd.concat stacks tables vertically or side by side. join merges on the index.

The classic mistake is a many-to-many join that multiplies rows. Check row counts before and after, and use indicator=True to see which rows matched. See the SQL Roadmap roadmap for join concepts.

Practice. Join orders to customers, then verify that the row count is unchanged and find unmatched rows.

Reshaping: Pivot, Melt and Stack Recommended

Wide tables have one column per period; long tables have one row per observation. Reshaping converts between them. melt goes wide to long: df.melt(id_vars="product", var_name="month", value_name="sales"). pivot goes long to wide: long.pivot(index="product", columns="month", values="sales"). stack and unstack move column levels into the index and back, and pivot_table also aggregates duplicates.

Long format is best for plotting with Seaborn and for groupby. Wide format is best for reading and for some calculations. Know which one your next step needs.

Practice. Convert a table with twelve monthly columns to long format and plot totals by month.

Pandas String Methods and Parsing Dates Core

The .str accessor applies string operations to a column: df["name"].str.strip().str.title(), str.contains("fr", case=False), str.replace, str.split(" ", expand=True) and str.extract(r"(\d+)"). Missing values stay missing, with no error.

Parsing Dates: pd.to_datetime(df["date"], format="%Y-%m-%d", errors="coerce") converts text, and coerce turns bad values into NaT. Then use the .dt accessor: df["date"].dt.month, .dt.dayofweek. Set a date column as the index to use resample("M").sum() for monthly totals, rolling(7).mean() for moving averages and shift for lags. Be explicit about time zones.

Practice. Parse a column of mixed-format dates and compute monthly totals with resample.

Stage 5 Data Cleaning

Intermediate2 weeks6 topics

Goal. Find and fix missing, inconsistent and extreme values with decisions you can justify.

Data Cleaning Core

Data Cleaning makes raw data fit for analysis. Real data has duplicates, inconsistent labels ("NY", "New York"), wrong types, impossible values, missing entries and extra whitespace. Analysis on dirty data gives confident wrong answers.

A routine: inspect with info(), describe() and value_counts(); fix types; standardise text; remove or flag duplicates with duplicated(); handle missing values; check ranges and constraints; and record every change. Write cleaning as a function or script that you can re-run on fresh data, never as manual edits in a spreadsheet.

Keep the raw file untouched, and keep a note of how many rows each step removed, so you can explain the result to others.

Practice. Clean a deliberately messy file and write a log of each change and the rows affected.

Null Values: isnull, isna Core

Missing values appear as NaN or None, and as NaT for dates. df.isnull() and df.isna() are the same and return a boolean table. Count missing per column with df.isna().sum(), and the share with df.isna().mean().

Watch for disguised missing values: "N/A", "-", -999 or an empty string. Pass na_values when reading, or replace them. Ask why data is missing before acting: random gaps are different from gaps that depend on the value itself, such as high earners skipping an income question.

NaN is not equal to itself, so use pd.isna rather than == np.nan.

Practice. Report the missing share per column for a data set and find any disguised missing values.

Dropping vs. Imputing Core

You have two broad choices. Dropping removes rows with dropna(), or columns when most values are missing. It is simple and fine when few rows are lost and the loss is random. Imputing fills the gap: fillna(df["age"].median()) uses the median, which resists outliers, while the mean suits symmetric data and the mode suits categories. Group-wise imputation is better: fill with the median of the same segment.

Add an indicator column such as age_missing when missingness may carry meaning. Imputation reduces variance and can bias results, so say what you did. For models, fit the imputer on training data only (scikit-learn's SimpleImputer) to avoid leakage.

Practice. Compare the mean of a column after dropping, mean-imputing and median-imputing, and explain the differences.

Forward / Backward Fill Recommended

For ordered data, such as time series, the last known value is often a sensible fill. ffill() carries the previous value forward and bfill() pulls the next value backward. Use limit=2 to stop a fill running too far, and groupby first so values do not leak between entities: df.groupby("sensor")["value"].ffill().

Sort by time before filling. Interpolation, df["value"].interpolate(), draws a line between known points and is better for smooth measurements. Do not forward fill when a missing value means "nothing happened" and zero is the right answer.

Practice. Fill gaps in a sensor series with ffill and interpolation and plot both.

Encoding Categories and Type Casting Core

Models need numbers, and categories are text. Label encoding assigns an integer per category, which is right only for ordered categories (small, medium, large) because it implies an order. One-hot encoding creates one 0/1 column per category: pd.get_dummies(df["city"], drop_first=True) or scikit-learn's OneHotEncoder. High-cardinality columns need other approaches, such as frequency or target encoding with care.

Type Casting in pandas uses astype: df["id"].astype("string"), and astype("category") saves memory for repeated labels. Use pd.to_numeric(errors="coerce") for numbers stored as text. Correct dtypes cut memory and avoid silent errors.

Practice. One-hot encode a categorical column and compare memory with and without the category dtype.

Outliers: IQR and Z-score Core

An outlier is a value far from the rest. It may be an error or a real, important event, so investigate before removing. The IQR rule uses the interquartile range: take the first and third quartiles, subtract them to get the IQR, then mark anything more than one and a half IQRs outside either quartile. Boxplot whiskers use the same rule, and it assumes no particular distribution.

The Z-score is (x - mean) / std; values beyond 3 are commonly flagged. It assumes roughly normal data and is distorted by the outliers themselves, so a sturdier variant uses the median and the median absolute deviation instead.

Options: keep, cap (winsorise), transform with a log, or remove. State your choice.

Practice. Flag outliers with both rules on a skewed column and compare which rows each rule finds.

Stage 6 Exploratory Data Analysis and Statistics

Intermediate2-3 weeks8 topics

Goal. Explore a new data set systematically, quantify relationships and avoid common statistical traps.

Exploratory Data Analysis Core

Exploratory Data Analysis (EDA) is how you learn what a data set contains before you model or report. Start with shape, types, missing values and duplicates. Then look at each variable alone (distribution, range, odd values), then pairs (relationships), then groups (how a measure differs by segment or time).

Write questions as you go and test them. Keep a short list of findings and data quality problems. Check that totals match a known source, since a join or filter error often shows up as a count that is off.

EDA ends when you can describe the data and name the next analysis. It is not the place to hunt for patterns until one looks significant.

Practice. Run a complete EDA on a public data set and write a one-page summary of findings and problems.

Visual Inspection Core

Charts reveal problems that numbers hide. Histograms show shape and gaps, boxplots show spread and outliers, scatterplots show relationships and clusters, line plots show trends and breaks, and bar charts compare groups. Missing value maps, such as a heatmap of df.isna(), show patterns of gaps.

The classic warning is Anscombe's quartet: four data sets with the same mean, variance and correlation but very different pictures. Always plot before you trust a summary. One-line helpers are df.hist(), df.plot.box() and sns.pairplot(df).

Practice. Plot every numeric column of a data set as a histogram and note any surprises.

Mean, Median, Mode Core

The mean is the average, df["x"].mean(). The median is the middle value, median(), and resists outliers. The mode is the most common value, mode(). With skewed data, such as incomes or response times, the mean sits above the median, so report the median or both.

Percentiles describe the distribution: quantile([0.25, 0.5, 0.9, 0.99]). For latency, the 95th and 99th percentiles matter more than the mean. A weighted mean is needed when groups differ in size; averaging group averages is a common mistake.

Practice. Compute mean, median and mode of a skewed column and explain which you would report.

Variance and Standard Deviation Core

Variance measures spread as the average squared distance from the mean; the standard deviation takes the square root so the answer is back in the units of the data. Together, Variance and Std. Deviation describe how far values typically stray. In pandas std() uses ddof=1, the sample version, while NumPy's np.std defaults to ddof=0, the population version. This difference surprises many people.

About 68 per cent of values lie within one standard deviation of the mean for a normal distribution, and about 95 per cent within two. The coefficient of variation, std / mean, compares spread across different scales. The range and the IQR are simpler measures of spread.

Practice. Show the pandas and NumPy standard deviation of the same small array and explain the gap.

Correlation and Covariance Core

Covariance shows whether two variables move together, but depends on units. Correlation scales it to between -1 and 1. df["a"].corr(df["b"]) gives Pearson correlation, which measures linear association. Use method="spearman" for rank-based correlation, which handles monotonic nonlinear links and outliers better.

Correlation is not causation: a third variable may drive both, such as temperature driving ice cream sales and sunburn. A correlation near zero does not mean independence either, since a curve can have none. Always look at the scatterplot, and be careful with small samples.

Practice. Compute Pearson and Spearman correlations for two variables with a curved relationship.

Correlation Matrix and Heatmaps Core

df.corr(numeric_only=True) gives a table of pairwise correlations. A Seaborn heatmap makes it readable:

import seaborn as sns
sns.heatmap(df.corr(numeric_only=True), annot=True, cmap="coolwarm", vmin=-1, vmax=1)

Use it to spot related features, which matters for regression because highly correlated predictors (multicollinearity) make coefficients unstable. Keep the colour scale fixed from -1 to 1 so colours mean the same thing between charts, and use a diverging palette centred on zero.

Practice. Build an annotated heatmap for a data set and find the two most correlated features.

Cross-tabulation Recommended

pd.crosstab(df["plan"], df["churned"]) counts rows for each combination of two categorical columns. Add normalize="index" to see row percentages, and margins=True for totals.

pd.crosstab(df["plan"], df["churned"], normalize="index")

It answers questions such as "what share of each plan churned". Test whether the link is statistically meaningful with a chi-squared test: scipy.stats.chi2_contingency(table). For numeric measures by group, use pivot_table instead.

Practice. Cross-tabulate two categorical columns and test the association with a chi-squared test.

Statistics & ML with Scikit-learn Recommended

Scikit-learn offers consistent tools for modelling. Every estimator follows the same API: fit(X, y), predict(X) and, for transformers, transform. The standard flow is split data with train_test_split, build a Pipeline of preprocessing and a model, fit on training data and score on the held-out set.

from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
X_tr, X_te, y_tr, y_te = train_test_split(X, y, test_size=0.2, random_state=0)
model = LinearRegression().fit(X_tr, y_tr)
print(model.score(X_te, y_te))

Know overfitting, cross-validation and why the test set stays untouched until the end. Fit scalers and imputers on training data only. For a full path see the Python Roadmap roadmap and the machine learning roadmaps.

Practice. Predict a numeric column with linear regression, report an error metric on the test set and a cross-validated score.

Stage 7 Data Visualisation

Intermediate2-3 weeks8 topics

Goal. Choose the right chart and build clear, correct static and interactive visuals.

Matplotlib Core

Matplotlib is the base plotting library; Seaborn and pandas plotting call it. Two styles exist. The state-machine style plt.plot(x, y) is quick. The object-oriented style is better for real work: fig, ax = plt.subplots(), then ax.plot(x, y).

import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(6, 4))
ax.plot(df["date"], df["sales"])
ax.set_title("Daily sales"); ax.set_xlabel("Date"); ax.set_ylabel("Units")
plt.show()

Learn the parts: a Figure holds one or more Axes, and each Axes holds artists such as lines and text. Most confusing plot behaviour is clear once you know which object you are changing.

Practice. Plot a line chart of a time series with a title, axis labels and a legend using the object-oriented style.

Subplots and Figures, Customizing Plots and Saving Figures Core

fig, axes = plt.subplots(2, 2, figsize=(10, 6), sharex=True) creates a grid, and you plot on each axes[i, j]. Use fig.tight_layout() or constrained_layout=True to avoid overlaps.

Customizing Plots: colours, line styles, markers, ax.set_xlim, ax.legend, ax.annotate, tick formatting and styles such as plt.style.use("seaborn-v0_8"). Keep the data-to-ink ratio high: remove clutter, label directly and start bar charts at zero.

Saving figures: fig.savefig("chart.png", dpi=200, bbox_inches="tight"). Use SVG or PDF for documents that scale. Call savefig before plt.show(), or the file may be blank.

Practice. Make a 2 by 2 figure of four different charts and save it as PNG and SVG.

Seaborn and Plot Categories Core

Seaborn draws statistical charts from DataFrames with little code, in long (tidy) format: sns.scatterplot(data=df, x="age", y="income", hue="segment"). Plot Categories group by purpose: relational plots (relplot, scatter and line), distribution plots (displot, histograms and density), and categorical plots (catplot). Figure-level functions such as relplot, displot and catplot create whole grids with col= and row=; axes-level functions draw on one Axes.

sns.set_theme() applies clean defaults. Seaborn returns Matplotlib objects, so you can still adjust them.

Practice. Recreate one chart of each category on the same data set.

Distribution Plots, Histograms and Boxplots Core

To see how one variable is spread, use a Histogram: sns.histplot(df["x"], bins=30, kde=True). The number of bins changes the story, so try several. A KDE draws a smooth density. A Boxplot shows median, quartiles and outliers: sns.boxplot(data=df, x="group", y="value"); violin plots add the shape.

Use ECDF plots to compare distributions without choosing bins, and log scales for data across orders of magnitude. For comparing groups, box or violin plots beat bar charts of means, since they show spread.

Practice. Compare the distribution of a value across four groups with histogram, box and violin plots.

Scatterplots and Regression Plots Core

A Scatterplot shows the relationship of two numeric variables, with hue, size and style adding more. With thousands of points, reduce alpha or use hexbin and 2-D density plots to avoid overplotting.

Regression Plots add a fitted line and confidence band: sns.regplot(data=df, x="hours", y="score"), and sns.lmplot splits by a category. Use order=2 for a curve and lowess=True for a flexible fit. The picture is exploratory; a proper model needs diagnostics such as residual plots.

Practice. Draw a scatterplot with a regression line and check the residuals separately.

Categorical Plots and Heatmaps Core

Categorical Plots compare groups: sns.barplot (mean with a confidence interval), countplot (counts), boxplot, violinplot, stripplot and swarmplot (every point). Order categories sensibly, not alphabetically, and sort bars by value when no natural order exists.

Heatmaps show a matrix with colour: correlation tables, crosstabs, time-by-day activity. Choose a sequential palette for magnitude and a diverging one for values with a meaningful centre. Annotate cells when there are few. Never use a rainbow palette; it adds false boundaries and fails for colour-blind readers.

Practice. Show weekday-by-hour activity as a heatmap and a sorted bar chart of the busiest hours.

Plotly, Altair and Interactive Visualization Recommended

Interactive Visualization lets readers hover, zoom and filter. Plotly Express makes this a one-liner: px.scatter(df, x="age", y="income", color="segment", hover_data=["name"]), and charts export to HTML. Altair is declarative, built on the Vega-Lite grammar: you describe encodings, alt.Chart(df).mark_point().encode(x="age", y="income", color="segment"), and add selections for linked charts.

Pick interactive charts for exploration and dashboards; use static charts for print, papers and when a single clear message is needed. Interactivity does not fix a poorly chosen chart.

Practice. Turn one of your static charts into an interactive Plotly chart with hover details.

Dashboards, Streamlit, Dash, Power BI and Tableau Recommended

Dashboards are collections of charts and filters for regular use. Dashboards in Python: Streamlit turns a script into a web app with widgets in a few lines, ideal for quick internal tools; Dash, from the Plotly team, gives more control through callbacks and suits larger apps.

import streamlit as st
st.title("Sales")
region = st.selectbox("Region", df["region"].unique())
st.line_chart(df[df.region == region].set_index("date")["sales"])

Power BI / Tableau are drag-and-drop tools that business teams use widely; analysts are often expected to know one. Learn the Power BI Roadmap roadmap if your target roles use it. Cache data loading and keep dashboards focused on a few decisions.

Practice. Build a Streamlit page with a filter and two charts over a CSV.

Stage 8 Getting Data from Databases and the Web

Intermediate2 weeks6 topics

Goal. Pull data from SQL databases, APIs and web pages into DataFrames reliably.

SQL Fundamentals Core

Most business data sits in relational databases, so analysts need SQL. Know SELECT, WHERE, ORDER BY, GROUP BY with HAVING, joins, CASE, subqueries, common table expressions and window functions such as ROW_NUMBER() OVER (PARTITION BY ...).

A good division of work: let the database filter, join and aggregate, then bring the reduced result into pandas for analysis and charts. Pulling millions of rows to filter them in pandas is slow and costly. The SQL Roadmap roadmap covers the language in depth and SQL practice gives exercises.

Practice. Write a query with a join, a group by and a window function, and load the result into a DataFrame.

sqlite3 Core

sqlite3 ships with Python and uses a single-file database, ideal for practice and small projects.

import sqlite3, pandas as pd
con = sqlite3.connect("shop.db")
df = pd.read_sql("SELECT * FROM orders WHERE total > ?", con, params=[100])
df.to_sql("big_orders", con, if_exists="replace", index=False)
con.close()

Always pass values through parameters (?) and never build SQL by joining strings, which allows SQL injection. SQLite is not meant for many simultaneous writers, but it is excellent for local analysis and test data.

Practice. Load a CSV into SQLite with to_sql and query it back with parameters.

SQLAlchemy Recommended

SQLAlchemy connects Python to many databases, such as PostgreSQL, MySQL and SQL Server, through one interface. For analysts the main use is the engine:

from sqlalchemy import create_engine, text
engine = create_engine("postgresql+psycopg://user:pass@host/db")
df = pd.read_sql(text("SELECT * FROM sales WHERE year = :y"), engine, params={"y": 2024})

Keep credentials in environment variables, not in code. SQLAlchemy also has an ORM that maps tables to classes, mostly used in applications. Use a read-only database user for analysis.

Practice. Connect to a local database with an engine read from an environment variable and query it.

DuckDB Recommended

DuckDB is an embedded analytical database that runs inside your Python process. It queries pandas DataFrames, CSV and Parquet files directly with SQL and is fast on columnar scans and aggregations.

import duckdb
duckdb.sql("SELECT region, sum(sales) FROM 'sales/*.parquet' GROUP BY region").df()

It is a good bridge for data larger than memory comfort, with no server to set up. Use it when SQL is the clearest way to express a transformation, or when pandas becomes slow on joins and group-bys. It suits analysis, not many concurrent writers.

Practice. Query a folder of Parquet files with DuckDB and compare timing with pandas.

APIs with requests Core

Many data sources are HTTP APIs that return JSON. The requests library handles them:

import requests
r = requests.get("https://api.example.com/items", params={"page": 1}, timeout=10)
r.raise_for_status()
items = r.json()
df = pd.json_normalize(items["results"])

Always set a timeout, check the status, send keys in headers from environment variables and respect rate limits, with retries and backoff. Paginate until the API says there is no more data. Save raw responses to disk, so you do not call the API again while debugging.

Practice. Pull three pages of data from a public API, flatten it to a DataFrame and cache the raw JSON.

Web Scraping: BeautifulSoup and Scrapy Optional

When there is no API, you can read data from web pages. BeautifulSoup parses HTML so you can select elements: soup.select("table tr"), tag.get_text(strip=True). Combine with requests for simple pages. Scrapy is a full framework for crawling many pages, with spiders, queues, throttling and export pipelines.

Check the site's terms and robots.txt, rate-limit your requests, identify yourself and prefer an official API or download. Pages built with JavaScript may need a browser automation tool. Scrapers break when layouts change, so keep them small and monitored.

Practice. Scrape a table of ten rows from a page that allows it and load it into pandas.

Stage 9 Scale, Geospatial Data and Pipelines

Advanced2-3 weeks5 topics

Goal. Handle data that outgrows pandas, work with maps, and automate analysis as repeatable pipelines.

Polars Recommended

Polars is a DataFrame library written in Rust, with lazy evaluation, multi-threading and a consistent expression API. It is often several times faster than pandas and uses less memory on large files.

import polars as pl
out = (pl.scan_parquet("sales.parquet")
         .filter(pl.col("year") == 2024)
         .group_by("region").agg(pl.col("sales").sum())
         .collect())

scan_* builds a lazy plan that is optimised before collect(). Moving between pandas and Polars is easy with to_pandas() and pl.from_pandas. Learn pandas first, since most code and teams use it, then add Polars where speed matters.

Practice. Rewrite one pandas group-by pipeline in Polars and compare the run times.

Dask Optional

Dask scales familiar APIs beyond one machine's memory. A Dask DataFrame is many pandas DataFrames split into partitions and processed in parallel, lazily, until you call .compute().

import dask.dataframe as dd
df = dd.read_parquet("logs/*.parquet")
df.groupby("status")["bytes"].mean().compute()

It runs on a laptop with threads or on a cluster. It is useful for medium-large data where rewriting in Spark is overkill. Choose partition sizes of about 100 MB, avoid shuffles when you can and look at the dashboard to find bottlenecks.

Practice. Process a set of CSV files larger than comfortable memory with Dask and compute one group-by.

PySpark and Big Data Tools Optional

Apache Spark processes very large data across a cluster, and PySpark is its Python interface. A Spark DataFrame is distributed and lazy: transformations such as filter, groupBy and join build a plan, and an action such as show or write runs it.

from pyspark.sql import SparkSession, functions as F
spark = SparkSession.builder.getOrCreate()
df = spark.read.parquet("s3://bucket/sales/")
df.groupBy("region").agg(F.sum("sales")).show()

Other Big Data Tools include Hadoop storage, Hive, Kafka for streams and cloud warehouses. Use Spark when the data cannot fit on one machine, even with Polars or DuckDB. Most analysts need the ideas more than the cluster operation. The Python Roadmap roadmap and data engineering paths go further.

Practice. Run a PySpark group-by locally on a medium data set and look at the execution plan.

Geospatial Analysis and GeoPandas Recommended

Geospatial analysis works with locations and shapes. GeoPandas extends pandas with a geometry column of points, lines and polygons, and with spatial operations: sjoin joins by location, buffer grows shapes, distance measures and dissolve merges regions.

import geopandas as gpd
shops = gpd.read_file("shops.geojson").to_crs(3857)
zones = gpd.read_file("zones.shp").to_crs(3857)
joined = gpd.sjoin(shops, zones, predicate="within")

Coordinate reference systems matter: latitude and longitude are angles, so use a projected CRS for distances and areas. Draw with gdf.plot() or interactive explore(). Read formats include GeoJSON, Shapefile and GeoParquet.

Practice. Count points inside each polygon of a region file using a spatial join and draw a choropleth.

Data Pipelines and Airflow Recommended

A data pipeline is a repeatable sequence: extract, validate, transform, load and publish. A notebook that someone runs by hand is not a pipeline. Turn analysis into functions in scripts, add checks (row counts, null limits, schema), log what happens, make steps safe to re-run (idempotent) and schedule them.

Airflow is a widely used orchestrator. You define a DAG of tasks and dependencies in Python, and Airflow schedules, retries and monitors them.

with DAG("daily_sales", schedule="@daily", start_date=datetime(2025, 1, 1)) as dag:
    extract >> transform >> load

Alternatives include Prefect and Dagster, and cron suffices for small jobs. Test with small data and keep secrets out of the code.

Practice. Turn a notebook analysis into a script with three functions and schedule it daily with cron or Airflow.

Projects to build

Build these in order. Each one should end up in a public repository with a short README that explains your decisions.

  1. Personal spending analysisBeginner

    Export your own bank or card transactions, categorise them with string methods and report monthly totals by category. Chart trends and the five largest expenses.

    pandas · String methods · Groupby · Matplotlib

  2. Public data set explorationBeginner

    Pick an open data set, clean it and write a short notebook that answers five questions with charts. Record every cleaning decision and problem found.

    Data cleaning · EDA · Seaborn · Documentation

  3. Sales dashboardIntermediate

    Combine orders, customers and products from a SQLite database, compute revenue, growth and top customers, and present them in a Streamlit dashboard with filters.

    SQL · Merging · Streamlit · Plotly

  4. A/B test analysisIntermediate

    Analyse a conversion experiment: check group balance, compute lift, test significance with SciPy, report a confidence interval and write a recommendation in plain language.

    Statistics · SciPy · Visualisation · Communication

  5. API to report pipelineAdvanced

    Pull data daily from a public API, validate it, store it as Parquet, update a summary table with DuckDB and send a chart. Make every step safe to re-run.

    requests · Parquet · DuckDB · Pipelines

  6. Large file performance comparisonAdvanced

    Take a multi-gigabyte data set and run the same aggregation in pandas, Polars and DuckDB. Compare time and memory, and write when you would choose each.

    Polars · DuckDB · Profiling · Parquet

Interview questions

Try to answer each question out loud before you open the answer.

What is the difference between a Series and a DataFrame?Junior

A Series is a one-dimensional labelled array with a single dtype. A DataFrame is a two-dimensional table whose columns are Series sharing one index, and each column can have its own dtype. Selecting one column from a DataFrame returns a Series, and operations align on index labels, which is a common source of surprise.

Explain loc and iloc.Junior

loc selects by label and includes both ends of a label slice, and it accepts boolean masks and column names. iloc selects by integer position and excludes the end, like normal Python slices. I use loc for conditions such as df.loc[df.age > 30, "name"], and also for assignments, to avoid chained indexing problems.

How do you handle missing values?Junior

First I find out how much is missing and why. Random and small gaps can be dropped. Otherwise I impute: the median for skewed numbers, the mode for categories, group-wise values, or forward fill for time series. I may add a missing indicator. I avoid imputing the target, fit imputers on training data only for models, and I document the choice because it changes results.

What is the difference between merge, join and concat?Junior

merge combines tables on key columns with SQL-style join types. join is a convenience that merges on the index. concat stacks tables along rows or columns without matching on keys, aligning on the index. After a merge I check row counts and use validate to catch accidental many-to-many joins that multiply rows.

Why prefer vectorised operations over loops?Mid

Vectorised operations run in compiled code on whole arrays, so they avoid Python-level overhead per element. They are commonly tens to hundreds of times faster and shorter to read. Row-wise apply and iterrows are loops in disguise. I loop only when no vectorised alternative exists, and then consider NumPy, map or Numba.

How do you detect outliers and what do you do about them?Mid

I plot first. Then I use the IQR rule (beyond 1.5 times the IQR from the quartiles), which works for skewed data, or z-scores for roughly normal data. I investigate each case: an entry error is fixed, a genuine rare event stays, and for modelling I may cap or log-transform. I never delete them silently.

Mean or median: when do you use which?Junior

The mean uses every value but is pulled by extremes. The median is the middle value and resists outliers. For skewed data such as income, prices or latency, I report the median, often with percentiles. When totals matter, for instance revenue per customer times customers, the mean is the correct figure. I often show both.

What does a correlation coefficient tell you, and what does it not?Mid

Pearson correlation measures the strength and direction of a linear relationship between -1 and 1. It does not show causation, it can be driven by a few outliers or a third variable, and a value near zero does not rule out a non-linear relationship. I plot the data, consider Spearman for monotonic links and question any causal claim.

Explain a p-value in plain language.Mid

It is the probability of seeing data at least as extreme as ours if the null hypothesis, usually no effect, were true. A small p-value is evidence against the null; it is not the probability that the null is true, nor the size or importance of the effect. I report effect size and a confidence interval next to it and watch for repeated testing.

How would you work with a CSV file too large for memory?Mid

Read only needed columns with usecols and set compact dtypes. Process in chunks with chunksize and combine partial results. Better, convert to Parquet and use DuckDB or Polars lazy scans, which filter and aggregate without loading everything. For truly large data, use Dask or Spark. I measure memory with df.memory_usage(deep=True).

How do you choose a chart type?Junior

By the question. Trends over time: a line chart. Comparing categories: bars sorted by value, starting at zero. Distribution: histogram, box or violin plot. Relationship: scatterplot with a trend line. Composition: stacked bars sparingly. Then I remove clutter, label axes and units, use colour with purpose and check readability for colour-blind users.

What is the SettingWithCopyWarning?Mid

It warns that an assignment may be happening on a copy of a slice instead of the original, as in df[df.a > 1]["b"] = 0. The change may be lost. The fix is a single .loc call, df.loc[df.a > 1, "b"] = 0, or an explicit .copy() when you want an independent frame. Newer pandas copy-on-write behaviour makes the rules more predictable.

How would you make a notebook analysis reproducible?Mid

Pin package versions in a lock file inside a virtual environment, set random seeds, load data from a documented source rather than local paths, keep cells in a top-to-bottom order and restart and run all before sharing. I move reusable code into modules with tests, store raw data unchanged and write outputs to separate folders.

Walk through how you would analyse why sales dropped last month.Senior

I confirm the drop is real by checking data quality and seasonality. Then I break the metric into parts: orders times average order value, and slice by region, product, channel and customer segment to find where the change sits. I compare with the same period last year, check for outages, price or campaign changes, quantify the contribution of each segment and state findings with their uncertainty and next steps.

When would you use pandas, Polars, DuckDB or Spark?Senior

pandas for data that fits in memory, the biggest ecosystem and quick exploration. Polars when the same work needs speed and lower memory on one machine. DuckDB when SQL is natural and data sits in Parquet or CSV files. Spark when data outgrows one machine or the company already runs it. I choose the simplest tool that meets the size and team constraints.

Common mistakes

  • Looping over rows when a vectorised operation exists. Use column operations, `groupby` and `merge`.
  • Using `and` and `or` on arrays or Series. Use `&`, `|` and put each condition in brackets.
  • Trusting summary statistics without a chart. Plot the data first.
  • Dropping missing rows or outliers without checking why. Investigate, then record the decision.
  • Merging without checking row counts, which creates duplicated rows. Use `validate` and compare counts.
  • Leaving dates and numbers as text. Convert types early with `to_datetime` and `to_numeric`.
  • Running notebook cells out of order and publishing results that cannot be reproduced. Restart and run all.
  • Reporting correlation as cause. State what the data can and cannot show.
  • Fitting scalers or imputers on the full data set before splitting. Fit on training data only.
  • Hard-coding passwords and API keys in notebooks. Read them from environment variables.

Ready-for-interview checklist

  • I can set up an isolated environment and share its dependencies
  • I can select, filter, group, merge and reshape data in pandas without looking up basics
  • I can explain loc, iloc and boolean masks
  • I can clean text, dates, types, duplicates and missing values with a recorded rationale
  • I can detect outliers with IQR and z-scores and decide what to do
  • I can run an exploratory analysis and summarise it clearly
  • I can compute and interpret mean, median, standard deviation and correlation
  • I can explain a p-value and a confidence interval in plain language
  • I can build clear charts with Matplotlib and Seaborn and an interactive one with Plotly
  • I can load data from SQL, an API and Parquet files
  • I can choose between pandas, Polars, DuckDB and Spark for a given size
  • I can turn an analysis into a repeatable script

Related roadmaps

  • Python RoadmapSyntax to packaging: data model, typing, async, testing.
  • SQL RoadmapQueries, joins, window functions, indexes and transactions.
  • Power BI RoadmapPower Query, data modelling, DAX, visuals and sharing.
  • R RoadmapData frames, tidyverse, statistics, plotting and reporting.
  • Redis RoadmapData types, caching patterns, persistence, clustering and streams.
  • Elasticsearch RoadmapIndexing, mappings, queries, relevance and cluster operations.

FAQ

How long does it take to learn Python for data analysis?

With no programming background, expect three to four months at around eight hours a week to become comfortable with pandas, cleaning, statistics and charts. If you already code, one to two months is realistic. Projects on real data speed this up more than courses.

Should I learn Python or R for data analysis?

Python is the safer first choice because it is used across analysis, engineering and machine learning, and appears in most job posts. R is strong in statistics and some research fields. The concepts transfer, so learning one makes the other easier.

Do I need to learn SQL as well?

Yes. Most company data is in databases, and analyst interviews almost always include SQL. Use SQL to filter and aggregate at the source, and use pandas for analysis and charts.

Is pandas still worth learning with Polars and DuckDB around?

Yes. pandas has the largest ecosystem and is what most teams and tutorials use. Polars and DuckDB are good additions for speed and large files, and the ideas of tables, grouping and joins carry over directly.

How much maths and statistics do I need?

Enough to understand averages, spread, distributions, correlation, sampling and hypothesis tests. Linear algebra matters more if you move toward machine learning. Learn statistics alongside the code, using real data.

Practise while you learn.Solve interview problems in the browser, with hints and a timer.
CodingSQLSystem design
Next Post Previous Post
No Comment
Add Comment
comment url