PythonFan.org
Toggle Menu
Home
Online Python Compiler
Tutorials
Python FastAPI
Python Pandas
Python PyTorch
Python Seaborn
Blog
All Posts
Data Visualization With Seaborn
Test how well you can create insightful plots with Seaborn.
1. What is the primary Python library that Seaborn is built on top of?
Matplotlib
Pandas
NumPy
Scikit-learn
2. Which Seaborn function is used to create a histogram?
sns.histplot
sns.barplot
sns.boxplot
sns.heatmap
3. Which of the following are categorical plots in Seaborn?
barplot
countplot
violinplot
scatterplot
4. Seaborn can directly plot data from a NumPy array without using a Pandas DataFrame.
True
False
5. What does the 'hue' parameter in Seaborn plots typically represent? (Answer with a single term: a type of variable)
6. Which Seaborn theme is the default when initializing the library?
darkgrid
whitegrid
dark
white
7. Which parameters can be used to customize the appearance of data points in a Seaborn scatterplot?
hue
style
size
alpha
xlim
8. The sns.regplot() function automatically fits and displays a linear regression line by default.
True
False
9. What is the exact name of the Seaborn function used to create a line plot?
10. What type of distribution does a sns.boxplot() primarily visualize?
Quartile distribution of numerical data
Frequency of categorical data
Correlation between two variables
Trend over time
11. Which of these are Seaborn functions used to manage color palettes?
sns.color_palette()
sns.set_palette()
sns.husl_palette()
sns.lineplot()
12. Seaborn's sns.lmplot() is designed to create simple line plots without statistical modeling.
True
False
13. What does 'KDE' stand for in the context of a Seaborn KDE plot? (Full phrase)
14. Which parameter is commonly used in Seaborn functions to specify the input DataFrame?
data
df
dataset
source
15. Which Seaborn plots are classified as statistical data visualizations?
sns.regplot()
sns.lmplot()
sns.swarmplot()
sns.scatterplot()
16. You can set the figure size directly in Seaborn plotting functions using the 'figsize' parameter.
True
False
17. Name the primary data structure (from a Python library) used to organize data for Seaborn plots (abbreviation accepted).
18. Which Seaborn function is used to create a violin plot?
sns.violinplot()
sns.boxplot()
sns.swarmplot()
sns.stripplot()
19. Which of the following are Seaborn figure-level functions?
sns.relplot()
sns.catplot()
sns.displot()
sns.scatterplot()
20. Seaborn plotting functions include a built-in 'title' parameter to set plot titles.
True
False
Reset
Answered 0 of 0 — 0 correct