0
0
Data Analysis Pythondata~10 mins

Why Seaborn creates statistical visualizations in Data Analysis Python - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import Seaborn with its common alias.

Data Analysis Python
import [1] as sns
Drag options to blanks, or click blank then click option'
Apandas
Bsns
Cseaborn
Dmatplotlib
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'sns' directly instead of 'seaborn' in import.
Importing pandas or matplotlib instead of seaborn.
2fill in blank
medium

Complete the code to create a scatter plot using Seaborn.

Data Analysis Python
sns.[1](data=df, x='age', y='income')
Drag options to blanks, or click blank then click option'
Ascatterplot
Bhistplot
Cbarplot
Dboxplot
Attempts:
3 left
💡 Hint
Common Mistakes
Using barplot or boxplot which are for categorical data.
Using histplot which is for distributions.
3fill in blank
hard

Fix the error in the code to show a regression line with Seaborn.

Data Analysis Python
sns.lmplot(x='height', y='[1]', data=df)
Drag options to blanks, or click blank then click option'
Aweight
Bplt
Csns
Dage
Attempts:
3 left
💡 Hint
Common Mistakes
Passing library names or objects instead of column names.
Using variables not present in the data frame.
4fill in blank
hard

Fill both blanks to create a boxplot grouped by category.

Data Analysis Python
sns.[1](x='[2]', y='score', data=df)
Drag options to blanks, or click blank then click option'
Aboxplot
Bbarplot
Ccategory
Dgroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using barplot instead of boxplot for distribution.
Using wrong column names for grouping.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that filters and maps data.

Data Analysis Python
result = { [1]: [2] for k, v in data.items() if v [3] 10 }
Drag options to blanks, or click blank then click option'
Ak.upper()
Bv
C>
Dk
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong operators in filter condition.
Not transforming keys correctly.