...
/Exercise: Cumulative Univariate Analysis
Exercise: Cumulative Univariate Analysis
Practice with some lab exercises.
We'll cover the following...
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
Adjustedcolumn of themoviesdataset. -
On line 2, the
px.box()function is used to create the boxplot, where thedata_frameparameter specifies the dataset, and thexparameter specifies the column to use for the x-axis.
# Create and show figurefig = px.box(data_frame=movies, x="Adjusted")fig.show()
Exercise 2
For this exercise, please use Plotly graph ...