data visualization with python coursera week 3 quiz answers

Advanced Visualization Tools

1. Seaborn is a Python visualization library that provides a high-level interface for visualizing geospatial data.

  • True.
  • False.

2. Which of the choices below will create the following regression line plot, given a pandas dataframe, data_df?

  • import seaborn as sns
    ax = sns.regplot(x=โ€yearโ€, y=โ€totalโ€, data=data_df, color=โ€greenโ€, marker=โ€+โ€)
  • import seaborn as sns
    ax = sns.regplot(x=โ€totalโ€, y=โ€yearโ€, data=data_df, color=โ€greenโ€)
  • data_df.plot(kind=โ€regplotโ€, color=โ€greenโ€, marker=โ€+โ€)
  • import seaborn as sns
    ax = sns.regplot(x=โ€yearโ€, y=โ€totalโ€, data=data_df, color=โ€greenโ€)
  • data_df.plot(kind=โ€regressionโ€, color=โ€greenโ€, marker=โ€+โ€)

3. The easiest way to create a waffle chart in Python is using the Python package, PyWaffle.

  • True.
  • False.

Visualizing Geospatial Data

4. You cluster markers, superimposed onto a map in Folium, using a feature group object.

  • False.
  • True.

5. The following code will generate a map of Spain, displaying its hill shading and natural vegetation.

folium.Map(location=[-40.4637, -3.7492], zoom_start=6, tiles='Stamen Toner')

  • True.
  • False.

6. A choropleth map is a thematic map in which areas are shaded or patterned in proportion to the measurement of the statistical variable being displayed on the map.

  • True.
  • False.

Leave a Reply