Exploratory Data Analysis (EDA) is the disciplined process of learning what a dataset contains before making a claim or fitting a model. It is not a random collection of charts. Each step should reduce uncertainty about the data, the question or the limitations.
1. Define the question and grain
Write the decision, population, time window and unit of analysis. A row might represent a customer, order, visit or measurement. If the grain is unclear, every aggregation is suspect.
2. Inspect structure and quality
df.shape
df.dtypes
df.head()
df.isna().sum()
df.duplicated().sum()
These checks reveal dimensions, types, sample values, missingness and duplicate rows. Add range checks and key uniqueness for important identifiers.
3. Univariate and bivariate analysis
Use summaries and histograms for numeric distributions, category counts for qualitative variables, and carefully labelled comparisons for groups. Scatter plots can reveal nonlinearity or outliers, but correlation is not causation. Compare counts as well as averages so small groups are not overinterpreted.
4. Time, missingness and outliers
Parse dates with an explicit timezone policy and sort before calculating changes. Missingness may be informative; report who is missing and why. Investigate outliers against domain rules instead of deleting them automatically.
5. Communicate findings
For every chart, state the question, filter, unit, pattern and limitation. Separate descriptive evidence from hypotheses. Save the cleaning decisions, data source and reproduction steps.
Common mistakes and next step
Avoid chart dumps, hidden filtering, cherry-picking interesting relationships, leaking a target into features and drawing causal claims from observational data. Continue with the Project Library and Statistics course. Further reading: pandas tutorials.