From the course: Interactive Dashboards with Plotly and Dash
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Demo: Plotly graph objects
From the course: Interactive Dashboards with Plotly and Dash
Demo: Plotly graph objects
- [Instructor] All right, so let's go ahead and take a look at the Plotly Express and Plotly Graph Objects plotting frameworks in the Plotly Library. We're going to import pandas and numpy for our data manipulation magic. And then to import graph objects, we just do Plotly dot graph underscore objects as go. That's the standard alias. And then Plotly dot Express, the Express module is Plotly Express, and we'll import that as px. And again, that's a standard alias. And so we're going to create a dataframe called education. We're going to read in that same education data we worked with in section one, but we're going to create two columns. I'm going to create a column called expenditure for student, which is just total expenditure in that row divided by the enrollment in that row. So grades all G is the total number of students. Total expenditure is the total amount spent. So if we divide total amount spent by the number of students, we get the amount spent per student. And remember…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Intro to Plotly charts6m 2s
-
(Locked)
Demo: Plotly graph objects7m 38s
-
(Locked)
Demo: Plotly Express9m 30s
-
(Locked)
Basic Plotly charts2m 50s
-
(Locked)
Demo: Scatterplots and line charts6m 19s
-
(Locked)
Assignment: Line charts1m 51s
-
(Locked)
Solution: Line charts5m 2s
-
(Locked)
Plotting multiple series3m 50s
-
(Locked)
Demo: Bar charts5m 21s
-
(Locked)
Assignment: Bar charts2m 51s
-
(Locked)
Solution: Bar charts2m 20s
-
(Locked)
Pro tip: Bubble charts3m 1s
-
(Locked)
Pie and donut charts6m 23s
-
(Locked)
Assignment: Donut and bubble charts2m 6s
-
(Locked)
Solution: Donut and bubble charts5m 16s
-
(Locked)
Histograms4m 37s
-
(Locked)
Update methods5m 4s
-
(Locked)
Demo: Updating layout and traces7m 51s
-
(Locked)
Demo: Updating X and Y axes5m 47s
-
(Locked)
Adding annotations7m 54s
-
(Locked)
Assignment: Chart formatting1m 52s
-
(Locked)
Solution: Chart formatting3m 5s
-
(Locked)
Choropleth maps5m 32s
-
(Locked)
Demo: Choropleth maps7m 1s
-
(Locked)
Mapbox maps5m 23s
-
(Locked)
Demo: Density maps2m 4s
-
(Locked)
Assignment: Maps1m 43s
-
(Locked)
Solution: Maps1m 43s
-
(Locked)
Key takeaways2m 36s
-
(Locked)
-
-
-
-
-