Exercise: Cumulative Univariate Analysis
Explore how to perform cumulative univariate analysis with Plotly in Python. This lesson guides you through creating box plots, histograms, cumulative histograms, violin plots, and ECDFs using real movie dataset examples to enhance your data visualization skills.
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.
Exercise 2
For this exercise, please use Plotly graph ...