Plotly time series

In this Plotly tutorial, you will learn how to plot time series data in Python.

# Import Plotly Module
import plotly.express as px

# Import Dataset
dataset = px.data.gapminder().query("continent=='Oceania'")

# Time Series
plot = px.line(dataset, x="year", y="pop", color="country")

# Show the Plot
plot.show()

Output:

Free learning resources: AiHintsCodeAllow

Leave a Comment

Your email address will not be published.