4/ Create your first interactive chart
Install the required libraries:
%pip install pandas plotly
Then create a chart:
import pandas as p
import
plotly.express as px
df = pd.DataFrame({
"month": ["Jan", "Feb", "Mar", "Apr", "May"],
"sales": [120, 135, 128, 190, 175]
})
fig = px.line(
df, x="month", y="sales",
markers=True,
title="Monthly Sales"
)
fig.show()