Exercise: Cumulative Univariate Analysis
Practice with some lab exercises.
We'll cover the following
Exercise 1
For this exercise, please use the top_movies.csv
dataset that details the highest-grossing films in the United States and Canada.
Create a box plot using Plotly Express showing the distribution of the adjusted gross (adjusted
) column.
Solution
-
The below code creates a box plot using Plotly Express, where the x-axis represents the
Adjusted
column of themovies
dataset. -
On line 2, the
px.box()
function is used to create the boxplot, where thedata_frame
parameter specifies the dataset, and thex
parameter specifies the column to use for the x-axis.
Get hands-on with 1200+ tech skills courses.