1. Home
  2. Explore
  3. Computer Science
  4. Data Visualization with Pandas and Plotly

Study methods

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

Data Visualization with Pandas and Plotly

  • 55Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Visualization Basics
A visualization communicates a message through a
form.

55 questions

  1. 1
    A visualization communicates a message through a
    _____
    form.
    Hint

    Think about the kind of form that lets people see a message.

    Answer

    visual

    Explanation

    A visualization is a visual form used to communicate a message.

  2. 2
    Wear marks on the marble steps of the Leaning Tower of Pisa reveal where the greatest
    _____
    occurred.
    Hint

    The marks show where people most often walked.

    Answer

    foot traffic

    Explanation

    Repeated use wore down the marble, making the marks a visual indicator of foot traffic.

  3. 3
    In the stair example, the amount of wear was mapped to the
    _____
    axis, while the width of the step was mapped to the horizontal axis.
    Hint

    This is the vertical axis in a standard chart.

    Answer

    y

    Explanation

    The visualization used the vertical axis for amount of wear and the horizontal axis for the width of the step.

  4. 4
    In the stair visualization, a dotted line marked the level at which there was
    _____
    .
    Hint

    Below the line, wear began to appear.

    Answer

    nowhere

    Explanation

    The dotted line represented the threshold for no wear; dipping below it indicated wear.

  5. 5
    The primary goal of a business visualization is to inspire
    _____
    within its audience.
    Hint

    A useful business chart should prompt a response, not merely look attractive.

    Answer

    action

    Explanation

    Business visualizations are meant to help stakeholders make decisions and take action.

  6. 6
    A business visualization can help stakeholders make a
    _____
    .
    Hint

    It is the choice that action often follows.

    Answer

    decision

    Explanation

    In business settings, data and analytics teams commonly use visualizations to help stakeholders make decisions.

  7. 7
    The two complementary parts of a visualization are art and
    _____
    .
    Hint

    One part shapes the story; the other maps data to visual dimensions.

    Answer

    science

    Explanation

    A visualization combines artistic choices about the story with the science of mapping quantitative information to visual dimensions.

  8. 8
    Creating impact with a visualization is difficult without both the artistic and
    _____
    components.
    Hint

    The two parts work together rather than replacing one another.

    Answer

    science

    Explanation

    The story and presentation choices need to work alongside the quantitative visual mapping to create impact.

  9. 9
    Mapping quantitative information to visible features such as position, length, or size is mapping data to visual
    _____
    .
    Hint

    These features are visual properties that can encode data.

    Answer

    dimensions

    Explanation

    The science of visualization involves mapping quantitative information to visual dimensions.

  10. 10
    In a one-dimensional example, the number 55 was represented by the
    _____
    of a bar.
    Hint

    It is the bar property that can grow or shrink along one direction.

    Answer

    length

    Explanation

    The example mapped the quantitative value 55 to the length of a bar.

  11. 11
    In a two-dimensional bar example, the length represented a number while vertical position represented the
    _____
    of the data points.
    Hint

    The vertical placement showed how far apart the points were from one another.

    Answer

    separation

    Explanation

    The example used bar length for the numeric value and vertical position to show separation among data points.

  12. 12
    In the scatter plot example, company revenue was mapped to the
    _____
    position.
    Hint

    This is the horizontal position in a scatter plot.

    Answer

    x

    Explanation

    Revenue determined where each company appeared along the horizontal axis.

  13. 13
    In the scatter plot example, the number of employees was mapped to the
    _____
    position.
    Hint

    This is the vertical position in a scatter plot.

    Answer

    y

    Explanation

    The number of employees determined each company's vertical position.

  14. 14
    In the company scatter plot, market capitalization was encoded using the
    _____
    of each point.
    Hint

    This visual property makes larger companies appear as larger marks.

    Answer

    size

    Explanation

    Market cap was mapped to point size, adding a third quantitative dimension to the scatter plot.

  15. 15
    A scatter plot can display three quantitative dimensions by mapping values to x position, y position, and point
    _____
    .
    Hint

    The third property in the example changed the area of each plotted mark.

    Answer

    size

    Explanation

    The example mapped revenue to x position, employees to y position, and market cap to point size.

  16. 16
    In the New York City weather chart example, the vertical dimension of the top chart showed
    _____
    .
    Hint

    It measured how hot or cold the weather was.

    Answer

    temperature

    Explanation

    The chart displayed temperature on the vertical dimension of its top chart.

  17. 17
    The weather chart used months to represent a
    _____
    dimension.
    Hint

    Months establish when observations occurred.

    Answer

    time

    Explanation

    Months provided a time dimension in the weather chart.

  18. 18
    The weather chart used color coding to distinguish highs, lows, and
    _____
    .
    Hint

    This refers to the spans between values, as well as their extremes.

    Answer

    ranges

    Explanation

    Color coding conveyed highs, lows, and ranges in the chart.

  19. 19
    In addition to months, the weather chart showed individual
    _____
    as a secondary time dimension.
    Hint

    These are shorter time units within each month.

    Answer

    days

    Explanation

    The chart showed days as a secondary time dimension in addition to months.

  20. 20
    A chart that uses an area fill and a y-axis to represent the same quantity has redundant visual
    _____
    .
    Hint

    The same information is being encoded more than once.

    Answer

    dimensions

    Explanation

    Redundant visual dimensions encode the same information using multiple visual properties.

  21. 21
    There is no universally correct chart scale because the appropriate scale depends on the
    _____
    being told.
    Hint

    The intended message determines what the audience should notice.

    Answer

    story

    Explanation

    A scale should be selected in relation to the story and message the visualization is meant to communicate.

  22. 22
    A conversion-rate scale from 3.9% to 4.5% makes changes within that narrow range appear more
    _____
    .
    Hint

    A narrow range draws attention to relatively small changes.

    Answer

    emphasizing

    Explanation

    The narrow scale visually emphasizes the growth in conversion rates.

  23. 23
    A conversion-rate scale from 0% to 100% can make a rate near 4% appear very
    _____
    .
    Hint

    Compare the rate with the full possible range shown.

    Answer

    small

    Explanation

    On a 0% to 100% scale, a conversion rate around 4% occupies only a small part of the range.

  24. 24
    A scale from 0% to 4.5% can emphasize the jump from
    _____
    to the observed conversion rates.
    Hint

    This is the lower bound of the scale described in the example.

    Answer

    zero

    Explanation

    Starting the scale at zero can highlight the increase from zero to the observed conversion rates.

  25. 25
    When a chart includes many unnecessary groups and subgroups, it risks becoming
    _____
    .
    Hint

    Too much visual information can make a chart difficult to interpret.

    Answer

    overloaded

    Explanation

    Overloading a visualization with visual dimensions makes it harder to understand and can obscure the message.

  26. 26
    Subgroups that do not contribute to the overall message should generally be
    _____
    from the visualization.
    Hint

    Removing irrelevant details can make the main point clearer.

    Answer

    cut

    Explanation

    If subgroups are not part of the message, including them adds clutter rather than helping communication.

  27. 27
    In an area chart, using both vertical position and color to show the same quantity is an example of
    _____
    visual dimensions.
    Hint

    The two encodings repeat the same information.

    Answer

    redundant

    Explanation

    Redundant visual dimensions encode the same information more than once and can confuse the audience.

  28. 28
    In a bar chart, encoding magnitude with both bar length and color can be visually attractive but often adds little
    _____
    .
    Hint

    Ask whether the second encoding gives the audience new information.

    Answer

    helpfulness

    Explanation

    When color and bar length both show magnitude, the color is redundant and may not help the business interpretation.

  29. 29
    A visualization should emphasize the points that best support the intended
    _____
    .
    Hint

    Scale and design choices should serve what the audience needs to understand.

    Answer

    message

    Explanation

    The aspects a chart emphasizes should depend on the message being communicated to stakeholders.

  30. 30
    Before building a chart, the presenter recommends starting with the project's
    _____
    at the end: what the finished visualization should accomplish.
    Hint

    Begin by identifying the intended outcome.

    Answer

    goals

    Explanation

    Starting with the goal helps ensure that the chart is designed around its intended purpose.

  31. 31
    To make a visualization understandable on its own, its message can be communicated through visuals and plain
    _____
    .
    Hint

    The explanation should use ordinary written language as well as graphics.

    Answer

    English

    Explanation

    The chart's takeaway can be made explicit both visually and in plain English.

  32. 32
    For the stakeholder request about profitable companies, the planned scatter plot used company revenue on the x-axis and company
    _____
    on the y-axis.
    Hint

    This was the measure of profitability being compared with revenue.

    Answer

    profit

    Explanation

    The chart mapped revenue to the horizontal axis and profit to the vertical axis.

  33. 33
    The stakeholder wanted to understand which industries were most prevalent among the most
    _____
    companies.
    Hint

    The request focused on companies with the greatest earnings relative to costs.

    Answer

    profitable

    Explanation

    The prompt asked about the industry mix among the most profitable companies.

  34. 34
    The example dataset contained
    _____
    companies.
    Hint

    This is the count reported after checking the dataset.

    Answer

    950

    Explanation

    The presenter counted 950 companies in the dataset.

  35. 35
    The example used a binary yes-or-no category to identify whether a company was in the finance or
    _____
    sector.
    Hint

    This was the other sector paired with finance in the category.

    Answer

    technology

    Explanation

    The chart highlighted companies in finance or technology against companies outside those sectors.

  36. 36
    In the example chart, finance and technology membership was represented by point
    _____
    .
    Hint

    This visual property distinguished the two category groups.

    Answer

    color

    Explanation

    A helper column assigned colors according to whether a company belonged to the selected sectors.

  37. 37
    The presenter sorted companies by profit in descending order to inspect the most
    _____
    companies.
    Hint

    Descending order put the highest values first.

    Answer

    profitable

    Explanation

    Sorting the data by profit in descending order helped identify the leading companies and inspect their sectors.

  38. 38
    In pandas, selecting a subset of columns can remove data fields that are not needed for a visualization and make the resulting data
    _____
    .
    Hint

    The goal is a simpler, more focused dataframe.

    Answer

    clean

    Explanation

    The example retained relevant fields such as company, revenue, profit, sector, and market cap to produce cleaner data.

  39. 39
    Pandas was used in the example as a data
    _____
    library.
    Hint

    It was used to work with and prepare tabular data.

    Answer

    processing

    Explanation

    The presenter described pandas as the data processing library used in the workflow.

  40. 40
    Plotly's hover capability can show additional information, such as a company's name, when the audience moves over a plotted
    _____
    .
    Hint

    This is one of the marks in a scatter plot.

    Answer

    point

    Explanation

    The example used hover data to reveal the company name for a point in the scatter plot.

  41. 41
    Setting category order can place the โ€œyesโ€ group above the โ€œnoโ€ group in the chart's
    _____
    .
    Hint

    This chart element identifies the categories represented by the colors.

    Answer

    legend

    Explanation

    The example set the category order so that โ€œyesโ€ appeared before โ€œnoโ€ in the legend.

  42. 42
    Replacing data-oriented labels with stakeholder-friendly wording helps make a chart easier for its audience to
    _____
    .
    Hint

    Labels should use language the audience can readily interpret.

    Answer

    understand

    Explanation

    The example replaced a technical helper-column label with a question stakeholders could understand.

  43. 43
    A descriptive chart title can state the main
    _____
    so the audience can understand the takeaway quickly.
    Hint

    It is the central point the chart is meant to communicate.

    Answer

    message

    Explanation

    A title that states the takeaway helps the chart communicate its message even without a spoken explanation.

  44. 44
    Annotations such as a rectangle, line, and text can draw attention to and explain an important chart
    _____
    .
    Hint

    These marks call out a region of the visualization.

    Answer

    area

    Explanation

    The example used shapes and explanatory text to highlight the important cluster in the chart.

  45. 45
    In Plotly, adding line breaks in annotation text can make long text easier to
    _____
    .
    Hint

    Breaking a long line improves readability.

    Answer

    digest

    Explanation

    The presenter added line breaks so the annotation would not stretch awkwardly across the chart.

  46. 46
    The min and max values of a chart's scale are useful for
    _____
    the data, even though they do not always have to be included.
    Hint

    They help the audience understand the range and context of the values.

    Answer

    orienting

    Explanation

    Minima and maxima can help orient viewers, but whether to include them depends on the story being told.

  47. 47
    When minimum or maximum values are extremely extreme, removing those data points may make the scale less
    _____
    .
    Hint

    The goal is to avoid letting unusually distant values dominate the range.

    Answer

    extreme

    Explanation

    The presenter noted that some analysts remove very extreme data points so the minimum and maximum are less extreme.

  48. 48
    To reduce the risk of building a chart around a biased or irrelevant question, an analyst should clarify stakeholder priorities, pain points, risks, and
    _____
    .
    Hint

    These details establish what the stakeholder is trying to accomplish.

    Answer

    goals

    Explanation

    Understanding stakeholder priorities, pain points, risks, and goals helps ensure that the analytical question is relevant to the desired outcome.

  49. 49
    Choosing an appropriate chart type should begin with the main message and
    _____
    the stakeholder should take away.
    Hint

    First identify the conclusion the audience should retain.

    Answer

    takeaway

    Explanation

    The presenter recommended beginning with the intended message and takeaway before deciding whether to use a table or chart.

  50. 50
    The presenter emphasized that visualization impact depends more on strategy, communication, and analysis than on the
    _____
    itself.
    Hint

    Different software can create charts, but the message matters more.

    Answer

    tool

    Explanation

    The choice of software is secondary to doing the analysis and communicating a useful message to stakeholders.

  51. 51
    When presenting to stakeholders, analysts should focus on the data and its story rather than showing the audience their
    _____
    .
    Hint

    Stakeholders generally care about the results, not the implementation details.

    Answer

    code

    Explanation

    The presenter said that stakeholders usually care about the data and its story, not the code used to create the chart.

  52. 52
    Among the visualization tools discussed, the presenter identified
    _____
    as the most commonly used tool for business analysis.
    Hint

    It is a widely used spreadsheet application.

    Answer

    Excel

    Explanation

    The presenter stated that Excel is the most commonly used tool in business analysis.

  53. 53
    The presenter described D3 as highly flexible but relatively
    _____
    to learn.
    Hint

    Its flexibility comes with a steeper learning curve.

    Answer

    hard

    Explanation

    D3 was characterized as very flexible while also being one of the harder visualization libraries to learn.

  54. 54
    Plotly can support interactive charts with features such as hover details, filters, ranges, and
    _____
    controls.
    Hint

    These controls let viewers adjust the displayed range or magnitude.

    Answer

    scale

    Explanation

    The presenter noted Plotly's interactive capabilities, including hover behavior, filters, ranges, and scales.

  55. 55
    The four skill areas recommended for developing as a data analyst were storytelling and visualization, business strategy, data dexterity, and statistical
    _____
    .
    Hint

    This area includes understanding data through statistical methods.

    Answer

    analysis

    Explanation

    The suggested development areas were visualization and storytelling, business strategy, data dexterity, and statistical analysis.

1 of 55
Question 1 of 55

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent