Reputation: 189
I have the following boxplot in plotly for my streamlit application: `
fig = px.box(df, x=x_column, y=y_column, color=x_column)
st.plotly_chart(fig,use_container_width=True)
I have not found a working solution to hide the outliers in my boxplot.
The boxplot:
The desired boxplot:
Anyone who knows how I can achieve this? Thank you!
Upvotes: 3
Views: 2168
Reputation: 9786
You can simply use points=False
to remove outliers:
import plotly.express as px
df = px.data.tips()
fig = px.box(df, y="total_bill", points=False)
fig.show()
With outliers:
Upvotes: 4