NEW
Font size
WorksheetsWeeks 5-6 Quiz Exploratory Data
Total questions: 20
Worksheet time: 10mins
What is the primary purpose of Exploratory Data Analysis (EDA)?
A. To clean and preprocess data
B. To identify patterns, trends, and outliers in the data
C. To train machine learning models
D. To visualize final insights
Which of the following is NOT typically a part of EDA?
A. Summary statistics
B. Data cleaning
C. Model training
D. Data visualization
Which function is commonly used to calculate summary statistics in pandas?
A. describe()
B. summary()
C. calc_stats()
D. analyze()
What type of plot is useful for visualizing the distribution of a single numerical variable?
A. Line plot
B. Bar plot
C. Histogram
D. Box plot
How can you visualize the relationship between two numerical variables in pandas?
A. plot()
B. scatter()
C. line()
D. groupby()
Which of the following is a method to handle missing data in pandas?
A. fillna()
B. dropna()
C. replace()
D. All of the above
Which of the following pandas functions is used to check for missing values?
A. isnull()
B. isna()
C. both()
D. A and B
What is the default behavior of the dropna() function?
A. Drops columns with missing values
B. Drops rows with missing values
C. Replaces missing values with zeros
D. Replaces missing values with the mean
Which of the following would you use to fill missing values with the mean of a column?
A. fillna(method='mean')
B. fillna(mean())
C. fillna(df.mean())
D. replace_na(df.mean())
How do you replace missing values with a specific value, such as 0?
A. df.fillna(0)
B. df.replace(0)
C. df.fill(0)
D. df.replace_na(0)
What type of plot is best suited to show the distribution of categorical data?
A. Box plot
B. Scatter plot
C. Histogram
D. Bar plot
What is the purpose of a box plot in EDA?
A. To visualize the frequency of categories
B. To show the distribution and detect outliers
C. To compare two numerical variables
D. To display correlations
Which function in Matplotlib creates a line plot?
How can you visualize the correlation between multiple variables in a DataFrame?
A. Scatter plot
B. Pair plot
C. Line plot
D. Pie chart
Which of the following is the best way to detect outliers in a numerical variable?
A. Histogram
B. Box plot
C. Line plot
D. Pie chart
Which of the following is a measure of central tendency?
A. Variance
B. Mean
C. Standard deviation
D. Range
What does the corr() function in pandas compute?
A. The sum of a column
B. The mean of a column
C. The correlation between columns
D. The count of missing values
What test would you use to check if two variables are related in EDA?
A. Chi-square test
B. T-test
C. Regression analysis
D. A and B
What does the skewness of a data distribution indicate?
A. The spread of the data
B. Whether the data is normally distributed
C. The direction of the tail in the distribution
D. The central tendency of the data
What type of graph would you use to visualize the relationship between a categorical variable and a numerical variable?
A. Scatter plot
B. Bar plot
t
C. Box plot
D. Pie char
