Quick plots with plotly express

Quick plots with plotly express#

Learning Objectives#

After working through this topic, you should be able to:

  • Set up plotly as pandas’ plotting backend

  • Navigate the plotly gallery and find a plot that is similar to what you need.

  • Use plotly express for quick plots helping them to reveal patterns in data.

Materials#

Video:

Download the slides.

Quiz#

Which of the following applies to plotly.express?
What is the main use of plotly.express?
Which of the following lines of code allows you to use plotly.express through pandas.DataFrame?
What would you run to get the "spaghetti plot" of beer_consumption in each day in November (stored in variable day), for various cities in Germany (stored in Stadt)?
You need to plot the distribution of beer_consumption in each day in November (stored in variable day) for the whole North Rhine-Westphalia (stored in variable Bundesland). What would you run?
Can you produce good quality (publication-ready) plots with plotly.express?