Data Visualization with Python
- 42Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
42 questions
- 1Data visualization is the art of representing raw data in the form of beautiful and_____graphs.
Hint
Think about a word that describes visual appeal.
Answer
aesthetic
- 2The primary benefit of data visualization is helping to find meaningful_____from large datasets.
Hint
What do you gain by looking at patterns in data?
Answer
insights
- 3In the mammoth and saber-tooth cat example, the image visually conveys the animal's size, speed, and_____.
Hint
This trait is rated as low or high in the description.
Answer
aggressiveness
- 4Anscombe's quartet demonstrates that datasets with similar summary statistics can have very different_____when plotted.
Hint
What does a scatter plot show between x and y?
Answer
relationships
- 5To create a line plot in matplotlib, you use the function_____.
Hint
It's a method from the pyplot module.
Answer
plt.plot
- 6The attribute used to change the color of a line in_____
plt.plot()is.Hint
It accepts values like 'red', 'blue', etc.
Answer
color
- 7To add a title to a matplotlib plot, you call the function_____.
Hint
It's a pyplot function for labeling the entire plot.
Answer
plt.title
- 8The x-axis label is set using the function_____.
Hint
It's similar to
ylabelbut for the horizontal axis.Answer
plt.xlabel
- 9The y-axis label is set using the function_____.
Hint
It's for the vertical axis.
Answer
plt.ylabel
- 10To create two plots side by side in the same figure, you use the function_____.
Hint
It takes row, column, and index parameters.
Answer
plt.subplot
- 11A bar plot is used for_____data, while a histogram is for numerical data.
Hint
Think about the type of variable on the x-axis.
Answer
categorical
- 12The matplotlib function to create a vertical bar plot is_____.
Hint
It's similar to
barhbut for vertical bars.Answer
plt.bar
- 13To create a horizontal bar plot, you use the function_____.
Hint
The 'h' stands for horizontal.
Answer
plt.barh
- 14In a bar plot, the x-axis typically shows_____.
Hint
These are the groups being compared.
Answer
categories
- 15The matplotlib function for creating a scatter plot is_____.
Hint
It plots individual points.
Answer
plt.scatter
- 16The parameter that controls the size of points in a scatter plot is_____.
Hint
It stands for 'size'.
Answer
s
- 17The parameter that changes the shape of markers in a scatter plot is_____.
Hint
It accepts values like 'o', '^', 's', etc.
Answer
marker
- 18To change the overall figure size in matplotlib, you use the function_____with the
figsizeparameter.Hint
It's called before plotting.
Answer
plt.figure
- 19A histogram displays the_____of a numerical variable.
Hint
It shows how data is spread across intervals.
Answer
distribution
- 20The matplotlib function to create a histogram is_____.
Hint
It takes the data as the first argument.
Answer
plt.hist
- 21The number of bins in a histogram is controlled by the parameter_____.
Hint
It specifies how many intervals to split the data into.
Answer
bins
- 22In the iris dataset example, the histogram was created for the column named_____.
Hint
It's one of the measurements of the flower.
Answer
sepal length
- 23A box plot visualizes the median, quartiles, and potential_____of the data.
Hint
Points that fall far from the rest of the data.
Answer
outliers
- 24The matplotlib function for creating a box plot is_____.
Hint
It takes a list of data arrays.
Answer
plt.boxplot
- 25The line at the center of a box plot represents the_____.
Hint
It's the middle value when data is sorted.
Answer
median
- 26A violin plot is similar to a box plot but shows the full_____of the data.
Hint
It uses a kernel density estimate.
Answer
distribution
- 27The matplotlib function for creating a violin plot is_____.
Hint
It's analogous to
boxplot.Answer
plt.violinplot
- 28To add a grid to a matplotlib plot, you use the function_____with the argument
True.Hint
It toggles grid lines on and off.
Answer
plt.grid
- 29The parameter to show median lines in a violin plot is_____.
Hint
It's a boolean parameter.
Answer
showmedians
- 30The parameter to show mean lines in a violin plot is_____.
Hint
It's similar to
showmediansbut for the mean.Answer
showmeans
- 31A pie chart represents data as slices of a_____.
Hint
It's a circular statistical graphic.
Answer
circle
- 32The matplotlib function to create a pie chart is_____.
Hint
It takes values and labels.
Answer
plt.pie
- 33To display percentages on a pie chart, you use the parameter_____.
Hint
It expects a format string like '%1.1f%%'.
Answer
autopct
- 34To add a shadow effect to a pie chart, set the parameter_____to
True.Hint
It adds a drop shadow.
Answer
shadow
- 35To separate one slice from the pie chart, you use the parameter_____.
Hint
It takes a list of offset fractions.
Answer
explode
- 36A donut plot is created by overlaying a smaller_____pie chart on top of the original.
Hint
The inner circle is a pie chart with this color.
Answer
white
- 37In a donut plot, the radius of the inner pie chart must be_____than the outer pie chart.
Hint
It needs to be smaller to create the hole.
Answer
lesser
- 38The parameter to change colors in a pie chart is_____.
Hint
It accepts a list of color names.
Answer
colors
- 39An area plot in matplotlib is created using the function_____.
Hint
It stacks areas vertically.
Answer
plt.stackplot
- 40An area plot is similar to a_____in showing the distribution of numerical data.
Hint
Both display frequency over intervals.
Answer
histogram
- 41To overlay a line plot on top of an area plot, you use the function_____after the area plot.
Hint
It's the same function used for line plots.
Answer
plt.plot
- 42The key difference between a bar plot and a histogram is that bar plots are for_____data.
Hint
Think about the type of data on the x-axis.
Answer
categorical

Ask anything
We've read this whole study set, so questions about it get the best answers.