Skill Zuno · skillzunos.com · Python Data Science
Seaborn interview questions
Prepare for Seaborn interviews on Skill Zuno. This practice book covers Seaborn interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open Seaborn on Skill ZunoAlso see the Seaborn tutorial.
Seaborn is a statistical data visualisation library built on Matplotlib that works directly with pandas DataFrames. It makes informative, attractive charts, such as distributions, relationships, categorical comparisons and regression plots, with very little code. Interviews cover figure-level versus axes-level functions, mapping variables with hue, size and style, distribution and categorical plots, faceting and customising seaborn output with Matplotlib.
Sample Seaborn interview questions
What is the difference between figure-level and axes-level functions?
Axes-level functions, such as scatterplot, draw onto one Matplotlib axes. Figure-level functions, such as relplot, create their own figure and can facet into multiple subplots with col and row.
What does the hue parameter do?
It colours elements by the values of another column, adding a dimension to the chart, such as scatterplot(data=df, x='age', y='income', hue='region').
What does barplot show by default?
The mean of the y variable for each category, with an error bar showing a 95 percent confidence interval. Use countplot for counts.
How do you show the correlation matrix of a DataFrame?
sns.heatmap(df.corr(numeric_only=True), annot=True, cmap='coolwarm', center=0), which colours each pair's correlation and prints the values.
What is long-form data?
Data with one row per observation and columns for each variable, so categories are values in a column rather than separate columns. Seaborn works best with it; pandas melt converts wide data.
What you can practice
- Seaborn interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Python Data Science topics alongside Seaborn on skillzunos.com