1. Home
  2. Explore
  3. Computer Science
  4. Data Visualization with Python

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Data Visualization with Python

  • 42Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Introduction to Data Visualization
Data visualization is the art of representing raw data in the form of beautiful and
graphs.

42 questions

  1. 1
    Data 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

  2. 2
    The 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

  3. 3
    In 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

  4. 4
    Anscombe'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

  5. 5
    To create a line plot in matplotlib, you use the function
    _____
    .
    Hint

    It's a method from the pyplot module.

    Answer

    plt.plot

  6. 6
    The attribute used to change the color of a line in plt.plot() is
    _____
    .
    Hint

    It accepts values like 'red', 'blue', etc.

    Answer

    color

  7. 7
    To 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

  8. 8
    The x-axis label is set using the function
    _____
    .
    Hint

    It's similar to ylabel but for the horizontal axis.

    Answer

    plt.xlabel

  9. 9
    The y-axis label is set using the function
    _____
    .
    Hint

    It's for the vertical axis.

    Answer

    plt.ylabel

  10. 10
    To 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

  11. 11
    A 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

  12. 12
    The matplotlib function to create a vertical bar plot is
    _____
    .
    Hint

    It's similar to barh but for vertical bars.

    Answer

    plt.bar

  13. 13
    To create a horizontal bar plot, you use the function
    _____
    .
    Hint

    The 'h' stands for horizontal.

    Answer

    plt.barh

  14. 14
    In a bar plot, the x-axis typically shows
    _____
    .
    Hint

    These are the groups being compared.

    Answer

    categories

  15. 15
    The matplotlib function for creating a scatter plot is
    _____
    .
    Hint

    It plots individual points.

    Answer

    plt.scatter

  16. 16
    The parameter that controls the size of points in a scatter plot is
    _____
    .
    Hint

    It stands for 'size'.

    Answer

    s

  17. 17
    The parameter that changes the shape of markers in a scatter plot is
    _____
    .
    Hint

    It accepts values like 'o', '^', 's', etc.

    Answer

    marker

  18. 18
    To change the overall figure size in matplotlib, you use the function
    _____
    with the figsize parameter.
    Hint

    It's called before plotting.

    Answer

    plt.figure

  19. 19
    A histogram displays the
    _____
    of a numerical variable.
    Hint

    It shows how data is spread across intervals.

    Answer

    distribution

  20. 20
    The matplotlib function to create a histogram is
    _____
    .
    Hint

    It takes the data as the first argument.

    Answer

    plt.hist

  21. 21
    The number of bins in a histogram is controlled by the parameter
    _____
    .
    Hint

    It specifies how many intervals to split the data into.

    Answer

    bins

  22. 22
    In 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

  23. 23
    A box plot visualizes the median, quartiles, and potential
    _____
    of the data.
    Hint

    Points that fall far from the rest of the data.

    Answer

    outliers

  24. 24
    The matplotlib function for creating a box plot is
    _____
    .
    Hint

    It takes a list of data arrays.

    Answer

    plt.boxplot

  25. 25
    The line at the center of a box plot represents the
    _____
    .
    Hint

    It's the middle value when data is sorted.

    Answer

    median

  26. 26
    A violin plot is similar to a box plot but shows the full
    _____
    of the data.
    Hint

    It uses a kernel density estimate.

    Answer

    distribution

  27. 27
    The matplotlib function for creating a violin plot is
    _____
    .
    Hint

    It's analogous to boxplot.

    Answer

    plt.violinplot

  28. 28
    To 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

  29. 29
    The parameter to show median lines in a violin plot is
    _____
    .
    Hint

    It's a boolean parameter.

    Answer

    showmedians

  30. 30
    The parameter to show mean lines in a violin plot is
    _____
    .
    Hint

    It's similar to showmedians but for the mean.

    Answer

    showmeans

  31. 31
    A pie chart represents data as slices of a
    _____
    .
    Hint

    It's a circular statistical graphic.

    Answer

    circle

  32. 32
    The matplotlib function to create a pie chart is
    _____
    .
    Hint

    It takes values and labels.

    Answer

    plt.pie

  33. 33
    To display percentages on a pie chart, you use the parameter
    _____
    .
    Hint

    It expects a format string like '%1.1f%%'.

    Answer

    autopct

  34. 34
    To add a shadow effect to a pie chart, set the parameter
    _____
    to True.
    Hint

    It adds a drop shadow.

    Answer

    shadow

  35. 35
    To separate one slice from the pie chart, you use the parameter
    _____
    .
    Hint

    It takes a list of offset fractions.

    Answer

    explode

  36. 36
    A 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

  37. 37
    In 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

  38. 38
    The parameter to change colors in a pie chart is
    _____
    .
    Hint

    It accepts a list of color names.

    Answer

    colors

  39. 39
    An area plot in matplotlib is created using the function
    _____
    .
    Hint

    It stacks areas vertically.

    Answer

    plt.stackplot

  40. 40
    An area plot is similar to a
    _____
    in showing the distribution of numerical data.
    Hint

    Both display frequency over intervals.

    Answer

    histogram

  41. 41
    To 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

  42. 42
    The 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

1 of 42
Question 1 of 42

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent