Files
training.python.datascience/source/plotting/charts/plotly_template_select.py
2025-10-24 22:29:15 +02:00

10 lines
285 B
Python

from plotly.express import bar
import pandas as pd
data = pd.DataFrame({
"product": ["stylo", "clavier", "souris", "écran"],
"price": [1.99, 15.99, 8.99, 129.99],
})
figure = bar(data, x="product", y="price", title="Prix", template="seaborn")
figure.show(renderer="browser")