In this Plotly tutorial, you will learn how to plot a box plot in Python. You can use px.box()
function to plot a box plot.
# Import Plotly Module import plotly.express as px # Import Dataset dataset = px.data.gapminder().query("continent=='Oceania'") # Box Plot plot = px.box(dataset, x="lifeExp", color='country', title='Plotly Box Plot', height=400, width=600) # Show the Plot plot.show()