🔵 Data Science · Lesson 41
Exploratory Data Analysis (EDA)
Exploratory Data Analysis क्या है?
Exploratory Data Analysis ka matlab hai: EDA is the process of understanding data before building a model. It checks structure, missing values, summary and patterns. Simple words me, ye topic practical Python programs likhne me direct use hota hai.
Is topic ko sirf definition ke liye nahi, balki understanding data before modelling jaise real examples ke liye practice karein.
यह क्यों सीखना जरूरी है?
- Ye understanding data before modelling me kaam aata hai.
- Ye finding patterns se bhi connected hai.
- Isse aap code ka output aur errors better samajh paate hain.
Important Terms
| Term | Meaning |
|---|---|
| shape | Dimensions of an array. |
| describe | describe is an important term in this topic. |
| info | info is an important term in this topic. |
| missing values | Blank or unavailable data values. |
| patterns | patterns is an important term in this topic. |
Syntax / Basic Pattern
Basic idea: pehle data तैयार करें, phir Python logic apply करें, aur finally result display करें.
Basic Pattern
import pandas as pd
df = pd.DataFrame({"Age": [15, 16, 17], "Marks": [80, 90, 85]})
print(df.shape)
print(df.describe())
print(df.isnull().sum())Complete Example Program
Python – exploratory-data-analysis.py
import pandas as pd
df = pd.DataFrame({"Age": [15, 16, 17], "Marks": [80, 90, 85]})
print(df.shape)
print(df.describe())
print(df.isnull().sum())Expected Output
(3, 2)
Age Marks
count 3.0 3.0
...
Age 0
Marks 0
dtype: int64
Program Explanation
import pandas as pdimports ready-made features from a module/library.df = pd.DataFrame({"Age": [15, 16, 17], "Marks": [80, 90, 85]})stores a value in df.print(df.shape)displays information or calculated result on the screen.print(df.describe())displays information or calculated result on the screen.print(df.isnull().sum())displays information or calculated result on the screen.
Practical Uses
- Understanding data before modelling.
- Finding patterns.
- Detecting outliers.
Common Mistakes
- Analysing data before checking missing values, duplicates and data types.
- Changing original data without keeping a clean copy.
- Creating charts without title, labels or explanation.
Practice Tasks
- Program ko
exploratory-data-analysis.pyfile me type karke run karein. - Values change karke output compare karein.
- understanding data before modelling par ek छोटा example banayen.
- Logic ko apne words me 5 lines me likhein.
सारांश
Exploratory Data Analysis ko tab complete maanenge jab aap iska meaning, example, output aur practical use clearly explain kar saken.
💻 लाइव कोड एडिटर
इस पेज के प्रोग्राम यहीं तैयार हैं — चलाएँ, बदलें और सीखें। कुछ भी इंस्टॉल किए बिना।
OneCompiler द्वारा संचालित। कोड एडिटर में अपने आप आ जाता है — Run दबाकर आउटपुट देखें। अगर एडिटर न खुले तो नए टैब में खोलें.