Data Visualization with Python
Which two of the following are not examples of Matplotlib magic functions? #matplotlib inline %matplotlib notebook %matplotlib inline $matplotlib outline
$matplotlib outline #matplotlib inline
What is the code for the Matplotlib magic function? %matplotlib {%matplotlib} '%matplotlib' (%matplotlib)
%matplotlib
A box plot has _____ primary dimensions to statistically represent the distribution of a given data? 8 4 3 5
5
Which of the following is the correct way to add the callback decorator? @app.callback{ Output{component_id='bar-plot', component_property='figure'}, Input{component_id='input-yr', component_property='value'}} @app.callback[Output(component_id='bar-plot', component_property='figure'), Input(component_id='input-yr', component_property='value')] @app.callback( Output{component_id='bar-plot', component_property='figure'}, Input{component_id='input-yr', component_property='value'}) @app.callback( Output(component_id='bar-plot', component_property='figure'), Input(component_id='input-yr', component_property='value'))
@app.callback( Output(component_id='bar-plot', component_property='figure'), Input(component_id='input-yr', component_property='value'))
In the above chart, what do the letters in the box plot above represent? A = Median, B = Third Quartile, C = Mean, D = Inter Quartile Range, E = Lower Quartile, and F = Outliers A = Mean, B = Upper Mean Quartile, C = Lower Mean Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers A = Median, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers A = Mean, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Maximum
A = Median, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers
What type of data do Waffle Charts represent? Categorical Numerical Statistical Sequential
Categorical
A pie chart is a ______ statistical graphic, divided into segments, to illustrate numerical proportions. Folium Circular Bar chart Line plot
Circular
Using the inline backend, at what point can you not modify a figure? Before it is rendered After it is created After it is rendered After it is coded
After it is rendered
Complete the following. Matplotlib's three main layers are: Backend, Artist, Scripting Artist, Scripting, Histogram Line2D, Rectangle, Circle FigureCanvas, Renderer, Event
Backend, Artist, Scripting
A ____ is a type of plot where the length of each bar is proportional to the value of the item that it represents. Figma plot Line plot Histogram chart Bar chart
Bar chart
A bar chart is also known as a _______? Histogram Bar plot Pyplot Bar graph
Bar graph
Which of the following plots is ideal for comparing different categories or groups? Pie plots Bar plots Scatter plots Line plots
Bar plots
A Callback function is a Python function that is automatically called by _____ whenever an input component's property changes. HTML Dash Plotly Matplotlip
Dash
What is Dash? Dash is a Python framework for building web analytic applications. Dash is a Python framework tool used for building Plotly applications. A framework tool used for building software. A framework application used for creating statistical graphs.
Dash is a Python framework for building web analytic applications.
Fill in the blank. A line plot is a series of _____ points connected by straight line segments. Data Matplotlib Plotly Connection
Data
What is the first step when converting a world map into a choropleth map? Define the variable Use the columns "Country" and "Total" in our df_Canada dataframe Apply the choropleth function Use the country names to look up the geospatial information
Define the variable
Matplotlib was initially developed as an _____ and _____ visualization tool. Select two. ECoG ECG EG EEG
EEG ECoG
The following code will create a horizontal bar chart of the data in the panda's data frame question. question.plot(type='bar', rot=90) False True
False
What are the backend layers three built-in interface classes: Renderer, Event, and Figure Figure, Renderer, and Canvas FigureCanvas, Renderer, and Event FigureCanvas, Figure, and Event
FigureCanvas, Renderer, and Event
Which application is a powerful data visualization library in Python, built primarily to help people visualize geospatial data? Matplotlib Folium PyWaffle Plotly
Folium
What is the correct combination of function and parameter to create a box plot in Matplotlib? Function = plot, and Parameter = type with value = "box" Function = plot, and Parameter = kind with value = "box" Function = boxplot, and Parameter = type with value = "plot" Function = plot, and Parameter = kind with value = "boxplot"
Function = plot, and Parameter = kind with value = "box"
To create a choropleth map of a region of interest, Folium requires a ______ file that includes geospatial data of the region. Json Geo GeoJson HTML
GeoJson
What kind of file does Folium require to create a Choropleth map of a specific region? Json GeoJson Geo HTML
GeoJson
Complete the following: To create a choropleth map of a region of interest, Folium requires a Geo JSON file that includes_________. df_Canada The mapbox bright tiles set Statistical variable Geospatial data of the region
Geospatial data of the region
Fill in the blank. Plotly express is a ________ wrapper. High-level Low-level
High-level
When creating a histogram in Matplotlib what is the first step? Import histogram as plt and its scripting interface as mpl. Import histogram as mpl and its scripting interface as plt. Import matplotlib as mpl and its scripting interface as plt. Import matplotlib as plt and its scripting interface as mpl.
Import matplotlib as mpl and its scripting interface as plt.
What does a line plot display? A line plot displays information through bars on a chart A plot that displays line fragments at different data points A line plot is used to display information on pie charts Information as a series of data points connected by straight lines.
Information as a series of data points connected by straight lines.
What does a line plot display? A plot that displays line fragments at different data points A line plot displays information through bars on a chart A line plot is used to display information on pie charts Information as a series of data points connected by straight lines.
Information as a series of data points connected by straight lines.
Which Plotly.graph object has a dictionary structure? Graph Figure JSON Plotly
JSON
Matplotlib was created by: Cleve Moler, an American mathematician and computer programmer. Daniel Johnson, a German physicist. James Gosling, a Canadian computer scientist. John Hunter, an American neurobiologist.
John Hunter, an American neurobiologist.
Area lots are similar to what other type of plot? Bar Line Box Area
Line
What is the purpose of line plots? Displays data trends over time Captures data from charts Line plots capture trends and changes over time, allowing us to see patterns and fluctuations. Line plots capture data and changes overtime
Line plots capture trends and changes over time, allowing us to see patterns and fluctuations.
The _______ parameter specifies the latitude and longitude coordinates of the map's center point. Location Navigation Destination Geographic
Location
What parameter specify the latitude and longitude coordinates of the map's center point? Geographic Location Destination Navigation
Location
Fill in the blank. Plotly Graph Objects is a _____ level interface to figures, traces, and layout. Open High Low Simple
Low
Area plots are like a line plot but with the area below the line filled with color to emphasize the cumulative _______ of the variables. Magnitude Latitude Longitude Significance
Magnitude
An area plot, also known as an area chart or graph, displays the ________________ of multiple variables. Magnitude and proportion Proportion and perimeter Magnitude and area Proportion and area
Magnitude and proportion
__________ represent specific locations or points of interest, providing additional information when clicked. Navigation Locations Markers Zoom function
Markers
The process of creating a scatter plot involves importing ________ to visualize a large set of data. Figma Pyplot Matplotlib Plotly
Matplotlib
What is Seaborn based on? Matplotlib Word Clouds Python Waffle Charts
Matplotlib
What is the most widely used data visualization library in Python? Matplotlib Plotly Jupyter Notebook Pyplot
Matplotlib
Select two: An area plot depicts cumulated totals using _______ or _______ over time. Numbers Percentages Charts Data
Numbers Percentages
A histogram is a way of representing the frequency distribution of a _______________. Numeric dataset Demographic dataset Alphabetical dataset Statistical dataset
Numeric dataset
The default map style in Folium is the ___________. Open Street Map Arial Stamen Terrain Stamen Toner
Open Street Map
What is the default map style in Folium? Arial Stamen Terrain Stamen Toner Open Street Map
Open Street Map
What two functions are required to create a callback? Output and Input Output and Library Input and Outlet Input and Library
Output and Input
The callback function takes input and output components as ________. Perimeter Matplotlib Data Parameters
Parameters
Fill in the blank. Web-based visualizations created using _____ Python can be displayed in Jupyter Notebook, saved to standalone HTML files, or served as part of pure Python-built web applications using Dash. Dash Plotly Figma Matplotlib
Plotly
What is Plotly? Plotly is an interactive, open-source plotting library that supports over 40 unique chart types. An interactive open-source code. An interactive chart that displays statistical data. An interactive coding library.
Plotly is an interactive, open-source plotting library that supports over 40 unique chart types.
The easiest way to create a waffle chart in Python is using the Python package _________. Matplotlib PyWaffle Waffle chart Data visualization library
PyWaffle
The ______ module offers a convenient way to create and customize plots quickly? Numpy Folium Plotly Pyplot
Pyplot
Folium is a _______ library used for creating interactive maps and visualizations. Folium Choropleth Data Python
Python
Seaborn is a _______ visualization library that provides a high-level interface for visualizing geospatial data. Python Matplotlib Digital Data
Python
Which of the following are specialized plot types in Seaborn? Selecttwo. Bar plot Regression plot Pie plot Categorical plot
Regression plot Categorical plot
Which of the following plots is not ideal for comparing different categories or groups? Select all that apply. Bar plots Line plots Scatter plots Pie plots
Scatter plots Pie plots Line plots
______provides specialized plot types such as regression, distribution, and categorical plots that are particularly useful for analyzing data and modeling relationships. Pie plot Seaborn Bar plot Line plot
Seaborn
Fill in the blank. A pie chart is a circular statistical graphic, divided into _______, to illustrate numerical proportion. Plots Columns Graphs Segments
Segments
Which Folium map style enables you to visualize natural vegetation colors? Street-level map Open Street map Stamen toner Stamen terrain
Stamen terrain
A choropleth map is a _______ map. Open Street Map Stamen Toner Thematic Stamen Terrain
Thematic
What type of map does a Choropleth map represent? Stamen Toner Thematic Stamen Terrain Open Street Map
Thematic
What do the squares on a waffle chart represent? These squares resemble a grid of different-sized squares, each representing a specific value or category. These squares resemble a grid of equal-sized squares, with each square representing a specific value or category. The squares represent location plots on the graph. The squares represent the trajectory of the statistics.
These squares resemble a grid of equal-sized squares, with each square representing a specific value or category.
A Callback function is a Python function that is automatically called by Dash whenever an input component's property changes. False True
True
Dashboards can provide real-time visuals. True False
True
The code for setting the initial zoom level in Folium is zoom_start=parameter. False True
True
True or False. A scatter plot is a type of plot that displays values pertaining to typically two variables? False True
True
True or False. Bar plots are ideal for comparing different categories or groups. True Fals
True
True or False. Folium is a Python library used for creating interactive maps and visualizations. True False
True
True or False. Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, visualizations, and some explanatory text as well. True False
True
True or False. Jupyter Notebook is an open-source web application that allows you to create and share documents. True False
True
True or False. Markers represent specific locations or points of interest, providing additional information when clicked. True False
True
True or False. Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. True False
True
True or False. Matplotlib was initially developed as an EEG and ECoG visualization tool. True False
True
True or False. Matplotlibs three main layers are: Backend, Artist, and Scripting. False True
True
True or False. Seaborn is based on Matplotlib. True False
True
True or False. Seaborn provides specialized plot types such as regression, distribution, and categorical plots that are particularly useful for analyzing data and modeling relationships. False True
True
True or False. The 'location' parameter specifies the latitude and longitude coordinates of the map's center point. False True
True
True or False. The backend layers three built-in interface classes are FigureCanvas, Renderer, and Event. False True
True
True or False. The correct combination of function and parameter to create a box plot in Matplotlib is Function = plot, and Parameter = kind with value = "box". False True
True
True or False. The default map style in Folium is the Open Street Map. False True
True
True or False. The first step when creating a histogram in matplotlib is to import matplotlib as mpl and its scripting interface as plt. False True
True
True or False. The process of creating a scatter plot involves importing Matplotlib to visualize a large set of data. False True
True
True or False. To create a choropleth map of a region of interest, Folium requires a GeoJson file that includes geospatial data of the region. False True
True
True or False. To create a choropleth map of a region of interest, Folium requires a GeoJson file that includes geospatial data of the region. True False
True
True or False. Using the inline backend, you cannot modify a figure after it is rendered. False True
True
True or False. Waffle charts are a visualization technique that represents categorical data in the form of square tiles or cells. True False
True
True or False. When plotting directly with Matplotlib, the pyplot module offers a convenient way to create and customize plots quickly. False True
True
True or False: Dashboard simplifies the dynamic aspects of the business. True False
True
True or False: Line plots can be misleading if the scales on the axes are not carefully chosen to reflect the data accurately. True False
True
True or False: With Folium, you can display multiple markers on a map. True False
True
True or false. Waffle charts are a visualization technique that represents categorical data in the form of square tiles or cells. False True
True
A scatter plot is a type of plot that displays values pertaining to typically how many variables? One Four Three Two
Two
In a Histogram, the ________ axis is the frequency or the number of data points in each bin. Parallel Vertical Horizontal Perpendicular
Vertical
Matplotlib was initially developed as what kind of tool? Visualization Chart creation Graphing Data analyzer
Visualization
For what is Folium primarily used? Visualize geospatial data Provide a high-level interface for drawing attractive statistical graphics Depict the importance of different words in the body of the text Highlight progress against a given threshold
Visualize geospatial data
Which features do dashboards offer in real-time? Chat Messages Videos Visuals
Visuals
_______ are a visualization technique that represents categorical data in the form of square tiles or cells. Pie charts Bar charts Waffle charts Line charts
Waffle charts
________ are a visualization technique that represents categorical data in the form of square tiles or cells. Line charts Pie charts Waffle charts Bar charts
Waffle charts
The first step when creating a histogram in matplotlib is to import matplotlib as ____ and its scripting interface as _____. mpl and plt mp and plt mal and ptl mp and pt
mpl and plt
The code for setting the initial zoom level in Folium is ______________. zoom_start=parameter zoom-start parameter {zoom_start} parameter (zoom_start) parameter
zoom_start=parameter
What is the code for setting the initial zoom level in Folium? zoom-start parameter {zoom_start} parameter (zoom_start) parameter zoom_start=parameter
zoom_start=parameter
