Exploratory Data Analysis

    Yash Kabra3 min readUpdated

    Exploratory data analysis (EDA) is the detective work you do on a dataset before drawing any conclusions — summarising it, plotting it, and questioning it until you understand its shape, quality, and patterns. It is where most of the real insight in data science comes from, long before any machine-learning model is built. Skip EDA and you risk building confident answers on a foundation you never checked.

    What EDA tries to answer

    A good exploration asks:

    • What is in this data? How many rows and columns, and what do they mean?
    • Is it clean? Where are the missing values, duplicates, and odd entries?
    • How is each variable distributed? Centre, spread, and shape.
    • How do variables relate? Which ones move together?
    • Are there surprises? Outliers, unexpected patterns, or errors.

    A step-by-step EDA workflow

    1. Get the lay of the land

    import pandas as pd  # pandas 2.x
    
    df = pd.read_csv("students.csv")
    
    print(df.shape)        # how many rows and columns
    print(df.dtypes)       # the type of each column
    print(df.head())       # a peek at the first rows
    

    2. Summarise the numbers

    # .describe() gives count, mean, std, min, quartiles, and max
    print(df.describe())
    
    # Check missing values per column
    print(df.isna().sum())
    

    3. Explore categories

    # How many of each category? value_counts is your friend
    print(df["city"].value_counts())
    

    Want to learn this properly?

    Join the waitlist for our courses — beginner-friendly, project-first classes in Jalgaon.

    Browse courses

    4. Look at relationships

    # Correlation between numeric columns (close to +/-1 = strong link)
    print(df.corr(numeric_only=True))
    

    5. Plot, do not just compute

    Numbers summarise; pictures reveal. A histogram shows the distribution; a scatter plot shows relationships. This is where data visualisation basics become essential. Always look at your data — two datasets can share the same mean and standard deviation yet look completely different.

    EDA feeds everything else

    EDA is not a one-off step; it weaves through the whole data science workflow. It depends on data cleaning (you clean as you discover problems) and on statistics (to interpret what you see). The output is understanding — which questions are worth asking, and which answers you can trust.

    Common mistakes

    • Computing summaries without plotting. Means and correlations hide patterns that a chart makes obvious.
    • Ignoring missing data. A column that is 60% empty needs a decision before any analysis.
    • Treating outliers as noise to delete. Some outliers are errors; others are the most interesting finding. Investigate before removing.
    • Rushing to model. EDA is the work; modelling comes only after you genuinely understand the data.

    FAQ

    How long should EDA take? As long as it needs to. On a new dataset it often takes the largest share of the project, and that time is well spent.

    Do I need special tools? No — pandas plus a plotting library covers most EDA. Tools like Power BI help for interactive exploration.

    Is EDA only for data scientists? No. Analysts do it constantly too; it is a universal data skill.

    Keep learning

    EDA is the habit that separates trustworthy analysis from guesswork. Build it alongside pandas for analytics and the full Data Science & Analytics hub.

    Want to practise EDA on real datasets with guidance? Join the waitlist for the Data Science & Analytics course at Infoplanet, Jalgaon.

    Want to learn this properly?

    Join the waitlist for our courses — beginner-friendly, project-first classes in Jalgaon.

    Browse courses
    Yash Kabra

    Founder, Atlee Technologies

    Yash Kabra is the founder of Atlee Technologies, a product studio that ships SaaS products end-to-end. He owns products from strategy through launch and growth — including Infoplanet, TrackRise and Perqee — and teaches AI, Machine Learning and Data Science at Infoplanet with a focus on how these tools are used to build real products.

    Related guides