Data Visualization with Pandas and Plotly
- 51Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a data visualization?
51 questions
- 1
What is a data visualization?
Model answer
It is a visual form used to communicate a message.
Explanation
A visualization is not limited to a particular chart type; its defining purpose is visual communication.
- 2
What is the primary goal of a business visualization?
Model answer
It should help stakeholders make a decision or inspire them to take action.
Explanation
A chart that looks attractive but does not support a decision may not achieve its business purpose.
- 3
What two elements work together to make an impactful data visualization?
Model answer
The artistic element shapes the story and message, while the scientific element maps quantitative information to visual dimensions.
Explanation
The presentation and the data encoding both contribute to communicating effectively.
- 4
How can the worn marble steps at the Leaning Tower of Pisa be understood as a visualization?
Model answer
The wear marks visually reveal where people walked most often, communicating information about foot traffic.
Explanation
The physical pattern in the marble acts as a visual representation of an underlying quantity: use of the steps.
- 5
How could the wear pattern on a step be translated into a more conventional chart?
Model answer
Plot step width on the horizontal axis and amount of wear on the vertical axis, using a reference line to indicate where wear begins.
Explanation
The chart makes the visible wear pattern explicit as a relationship between position across the step and wear.
- 6
In a bar chart representing a single value, what visual dimension can encode that value?
Model answer
The length of the bar can represent the value’s magnitude.
Explanation
This maps one quantitative dimension to one visual dimension.
- 7
In the example with several values, how were value and separation between data points represented?
Model answer
Bar length represented the values, and vertical position separated the data points.
Explanation
The chart used two visual dimensions to communicate the values and distinguish their positions.
- 8
How can a scatter plot encode revenue, employee count, and market capitalization?
Model answer
Revenue can be mapped to horizontal position, employee count to vertical position, and market capitalization to marker size.
Explanation
The three variables are represented through three different visual dimensions.
- 9
Why is a size scale or legend useful when marker size represents a quantity?
Model answer
It helps viewers interpret how marker size corresponds to the represented values.
Explanation
Without a size reference, viewers may see relative differences but have difficulty judging their meaning.
- 10
What kinds of information were combined in the New York City weather chart example?
Model answer
It included temperature, precipitation, months and days, color-coded highs, lows and ranges, and callouts for notable rainfall.
Explanation
The example demonstrated how a chart can encode several variables and time dimensions together.
- 11
What should determine the scale chosen for a chart’s axis?
Model answer
The scale should be chosen according to the message the visualization is intended to communicate.
Explanation
Different scales can emphasize different aspects of the same underlying data.
- 12
Why might a truncated vertical axis be chosen for a chart of conversion rates?
Model answer
It can emphasize the size of changes between values when the message is that conversion rates have grown substantially.
Explanation
A narrower scale makes the differences appear more prominent, supporting that particular narrative.
- 13
How could a scale extending to 100% support a different message about conversion rates?
Model answer
It can emphasize that the current rate is still small relative to a much higher target, such as 75%.
Explanation
The larger range makes the gap between the observed rate and the target more apparent.
- 14
How could a scale starting at zero support a message about conversion rates?
Model answer
It can emphasize the increase from a starting point of zero to the current rate.
Explanation
Including zero gives visual context for the full rise from the baseline.
- 15
Do axis scales always need to include the data’s minimum and maximum values?
Model answer
No. Including them can help orient viewers, but whether to include them depends on the data and the story.
Explanation
The presenter noted that extreme values may sometimes be removed, but scale choices should serve the intended communication.
- 16
Why can the same dataset be shown with multiple valid axis scales?
Model answer
Because there is no universally correct scale; the appropriate choice depends on what the visualization is meant to emphasize.
Explanation
The data remain the same while the visual framing changes the message viewers notice.
- 17
What is the risk of adding many visual dimensions and subgroups to one chart?
Model answer
The chart can become overloaded and difficult to interpret, obscuring its message.
Explanation
Visual elements that do not support the main point make it harder for viewers to find useful meaning.
- 18
When should a subgroup be included in a visualization?
Model answer
It should be included when it contributes to the message the visualization is intended to communicate.
Explanation
Extra groupings should not be added merely to make a chart look more complex.
- 19
What is a redundant visual dimension?
Model answer
It is a visual encoding that repeats information already shown through another visual encoding.
Explanation
For example, color and vertical position may both represent the same quantity.
- 20
Why can redundant visual dimensions confuse viewers?
Model answer
Viewers may wonder whether the encodings represent different information and how they should reconcile them.
Explanation
Repeating a measure through color and position can create uncertainty rather than add useful information.
- 21
Why might using both vertical position and color to show the same value in an area chart be unhelpful?
Model answer
Both encodings communicate the same quantity, so the color adds little information and may create confusion.
Explanation
The chart already communicates the value through its position on the vertical axis.
- 22
Why might coloring bars according to their lengths be considered redundant?
Model answer
The bar length and color both show magnitude, so color repeats information already present in the bar.
Explanation
An additional encoding is most useful when it communicates a distinct and relevant variable.
- 23
Why should a visualization communicate its message in plain language as well as through visuals?
Model answer
Plain-language text helps make the intended takeaway clear, including when viewers must interpret the chart without a presenter.
Explanation
Titles and annotations can state the message directly instead of leaving the audience to infer it.
- 24
What does it mean to simplify a visualization while emphasizing its key message?
Model answer
Draw attention to the information that matters and remove elements that do not support the takeaway.
Explanation
A focused chart is easier for its audience to interpret and act on.
- 25
Why should an analyst clarify a stakeholder’s goal before building a visualization?
Model answer
Clarifying the goal helps ensure the question and analysis are relevant to the decision or outcome the stakeholder cares about.
Explanation
A chart can be technically sound yet unhelpful if it answers the wrong question.
- 26
What questions can help an analyst understand a stakeholder’s priorities before starting an analysis?
Model answer
The analyst can ask about priorities, pain points, mission, risks, and goals for the company or department.
Explanation
These questions help connect the requested analysis to the stakeholder’s actual needs.
- 27
How can an analyst check whether a stakeholder’s requested question is relevant to their goal?
Model answer
Compare the requested question with the stakeholder’s stated objective and confirm that answering it will help advance that objective.
Explanation
For example, a question that does not relate to increasing users may not help a stakeholder whose goal is user growth.
- 28
How can a question create bias in a chart before the chart is even made?
Model answer
If the question frames the analysis in a way that does not match the real goal, the resulting chart may emphasize an irrelevant or misleading point.
Explanation
Analysts should examine the question and intended mission before choosing how to visualize the data.
- 29
How can choosing a scale influence a visualization’s message, and why might that be intentional?
Model answer
A scale can emphasize particular changes or gaps; in a trusted business relationship, the analyst uses that choice to communicate a decision-relevant message.
Explanation
The analyst is responsible for interpreting data, while remaining aligned with the business’s needs.
- 30
What is a useful starting point when deciding whether information belongs in a table or a chart?
Model answer
Start with the takeaway the stakeholder needs to understand, then choose the format that communicates it best.
Explanation
The message and goal should guide the choice of presentation format.
- 31
What stakeholder request motivated the example visualization of profitable companies?
Model answer
The stakeholders wanted to understand the industry mix among the most profitable companies in the Fortune 1000.
Explanation
The visualization was designed to address a specific business question rather than to display data without a purpose.
- 32
How did the analyst identify which industries were common among the most profitable companies?
Model answer
The analyst sorted the data by profit in descending order and examined the leading companies’ sectors.
Explanation
This analysis showed that the top companies were largely in technology and finance, with a communications company also appearing.
- 33
Which columns did the analyst retain when preparing the company dataset for the chart?
Model answer
The analyst retained company, revenue, profit, sector, and market capitalization.
Explanation
Selecting relevant columns simplified the dataset for the intended visualization.
- 34
What was the reported size of the company dataset used in the chart example?
Model answer
The dataset contained 950 companies.
Explanation
The analyst checked the number of records after preparing the data.
- 35
Why did the analyst create helper columns for color and industry status?
Model answer
The columns made it easier to encode whether a company belonged to the finance or technology sectors using color and yes/no categories.
Explanation
Preparing these fields in the dataset supported the chart’s intended comparison.
- 36
How were the four data dimensions in the company scatter plot represented?
Model answer
Revenue was mapped to the horizontal axis, profit to the vertical axis, market capitalization to marker size, and finance-or-technology status to color.
Explanation
Each variable was assigned a distinct visual dimension to communicate multiple aspects of the companies.
- 37
What additional information did marker size communicate in the company scatter plot?
Model answer
Marker size represented each company’s market capitalization.
Explanation
This allowed viewers to compare company size in addition to revenue and profit.
- 38
Why might an analyst remove an extreme data point from a scatter plot?
Model answer
The analyst might remove it if it is not relevant to the message and its extreme value distracts from the comparisons of interest.
Explanation
The example noted that an unusually high-revenue point could be excluded if it did not serve the visualization’s purpose.
- 39
How can hover information make a scatter plot more useful?
Model answer
It can reveal identifying details, such as a company’s name, when a viewer points to a data point.
Explanation
Hover details add context without placing every label directly on the chart.
- 40
Why might an analyst set a category order for a chart legend?
Model answer
A specified order can place categories, such as “yes” before “no,” in the sequence that best supports interpretation.
Explanation
Controlling category order makes the chart’s grouping easier to read as intended.
- 41
Why should chart labels be written for stakeholders rather than left in data terminology?
Model answer
Stakeholder-friendly labels make the variables and categories easier to understand without requiring knowledge of internal column names.
Explanation
For example, a technical field name can be replaced with a clear question about whether a company is in a target industry.
- 42
How can a chart title and annotation reinforce one another?
Model answer
The title can state the main takeaway, while an annotation can point to the relevant data and explain why it supports that takeaway.
Explanation
Together they help the chart communicate independently of a live presentation.
- 43
Why might a chart annotation use a rectangle, a line, and explanatory text?
Model answer
The rectangle highlights a relevant region, the line directs attention to it, and the text explains its significance.
Explanation
Annotations connect a visual feature to the message the audience should take from it.
- 44
What should guide the choice of a visualization library or software package?
Model answer
The practitioner should choose a tool they can use effectively; the tool itself is less important than the analysis and communication strategy.
Explanation
Different tools can support visualization, but a sophisticated package cannot compensate for an unclear or irrelevant message.
- 45
What makes Plotly useful for interactive charts, and what limitation can arise when sharing a notebook chart?
Model answer
Plotly supports interactions such as hover details, but viewers may need the chart hosted somewhere accessible to interact with it.
Explanation
A chart embedded in a notebook may not be readily available to others unless it is shared or hosted appropriately.
- 46
How do D3 and Plotly differ in the balance between flexibility and difficulty described in the presentation?
Model answer
D3 is highly flexible but difficult to learn, while Plotly offers a middle ground with less difficulty and some flexibility.
Explanation
The recommended choice depends on the practitioner’s needs and comfort with the library.
- 47
Why should a presenter generally avoid showing code to business stakeholders?
Model answer
Stakeholders usually need the data, analysis, and story rather than the code used to produce them.
Explanation
Code may be useful during analysis, while slides or documents can communicate the result more directly.
- 48
What was the presentation’s general account of Python’s use in business analysis?
Model answer
Excel was described as the most commonly used tool, with Python as a prominent coding language outside Excel and R another common option.
Explanation
The speaker expressed a preference for Python, in part because of its community support.
- 49
What four skill areas were recommended for someone developing data-analysis ability?
Model answer
Storytelling and visualization, business strategy, data handling or dexterity, and statistical analysis.
Explanation
Together, these areas cover communication, business context, working with data, and analytical methods.
- 50
How can experience with Excel help someone begin learning Python for data analysis?
Model answer
Familiarity with rows and columns, formulas, and conditional logic provides concepts that also appear in data work with Python.
Explanation
The speaker presented these existing skills as a useful foundation, while not suggesting that they replace learning Python.
- 51
What helps someone improve at communicating analytical findings to stakeholders?
Model answer
Practice, mentorship, and learning from failures help build communication and presentation skills.
Explanation
The speaker emphasized repeated experience rather than a quick method for becoming an effective communicator.

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