import plotly.express as px df = px.data.tips() fig = px.histogram(df, x="total_bill", nbins=20) fig.show()