You load a dataset, train a model, and see a promising score. Then you notice that one column contains the outcome you meant to predict. This kind of mistake is easier to catch before modeling, while you are still learning what each field means.
Start with shape and meaning
Exploratory data analysis, often shortened to EDA, is the practice of examining data before drawing conclusions or building a model. Start by checking how many rows and columns you have, what each column represents, and whether the first few records look plausible. In pandas, methods such as `head()` and `info()` provide a quick first look.
Consider a dataset of apartment listings with columns for neighborhood, bedrooms, rent, and listing date. Ask whether each row represents one listing, whether rent is stored as a number, and whether dates cover the period you care about. These basic checks establish what the dataset can reasonably answer.
Look for gaps and surprises
Count missing values in the columns that matter, then inspect the ranges of numeric fields. A rent of zero might reflect a data-entry issue, a special listing type, or a meaningful case; the number alone does not tell you which. Check unusual records against the dataset’s definitions before removing them.
Simple summaries and plots can reveal patterns that a table hides. A histogram can show whether rent values cluster or stretch far to the right, while a neighborhood comparison can expose differences that a single overall average smooths over. Label axes and note the unit, especially when a value could be dollars per month or per week.
Keep a record of decisions
As you explore, record decisions such as excluding duplicate listings or setting aside rows without a usable date. Keep the original data unchanged and make these choices in a separate analysis step. That makes it possible to revisit a decision when a new question arises.
EDA is not a ceremonial checklist before the “real” work. It is how you learn what the data says, where it is limited, and which next step is worth taking. Explore first; model only after you can describe the table in plain language.

