data visualization with python final exam answers
Introduction to Data Visualization Tools
1. Data visualizations are used to (check all that apply):
- train and test a machine learning algorithm.
- perform data analytics and build predictive models.
- support recommendations to different stakeholders.
- share unbiased representation of data.
- explore a given dataset.
2. The three layers that make up the _________ architecture are the backend, the artist, and the scripting layers.
- Matlab
- Matplotlib
- Seaborn
- Pyplot
3. Which of the following codes uses the scripting layer to create a stacked area plot of the data in the pandas dataframe, area_df?
- ax = area_df.plot(kind=’area’, figsize=(20, 10)) ax.title(‘Plot Title’) ax.ylabel(‘Vertical Axis Label’) ax.xlabel(‘Horizontal Axis Label’)
- ax = area_df.plot(type=’area’, figsize=(20, 10)) ax.set_title(‘Plot Title’) ax.set_ylabel(‘Vertical Axis Label’) ax.set_xlabel(‘Horizontal Axis Label’)
- import matplotlib.pyplot as plt area_df.plot(kind=’area’, figsize=(20, 10)) plt.title(‘Plot Title’) plt.ylabel(‘Vertical Axis Label’) plt.xlabel(‘Horizontal Axis Label’) plt.show()
- None of the above
4. The following code will create a stacked area plot of the data in the pandas dataframe, area_df, with a transparency value of 0.35?
import matplotlib.pyplot as plt transparency = 0.35 area_df.plot(kind='area', alpha=transparency, figsize=(20, 10)) plt.title('Plot Title') plt.ylabel('Vertical Axis Label') plt.xlabel('Horizontal Axis Label') plt.show()
- True
- False
5. Pie charts are less confusing than bar charts and should be your first attempt when creating a visual.
- False
- True
6. A ___________ is a variation of the scatter plot that displays three dimensions of data.
- Bubble plot
- Scatter map
- Bar chart
- Heatmap
7. A waffle chart is great way to visualize data in relation to a whole, or to do what?
- Highlight progress against a given threshold.
- Summarize a set of data measured on an interval scale.
- Identify variables that have an impact on a topic of interest.
- Show frequency or importance.
8. What is a depiction of the meaningful words in some textual data, where the more a specific word appears in the text, the bigger and bolder it appears?
- A Regression Plot
- A Word Cloud
- A Waffle Chart
- A Box Plot
9. Which of the following is NOT a tile style of Folium maps?
- Stamen Terrain
- OpenStreetMap
- Stamen Toner
- River Coastal
10. What is the correct tile style for Folium maps that feature hill shading and natural vegetation colors?
- Stamen Watercolor
- Stamen Terrain
- OpenStreetMap
- Mapbox Bright
11. Which of the following statements is true for Plotly?
- An interactive, open-source plotting library.
- All of the above
- Includes chart types like statistical, financial, maps, scientific, and 3-dimensional.
- Supports over 40 unique chart types.
12. Dash components are
- Core
- HTML
- CSS
- Both a and b
- a only