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!
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:

After removing outliers:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With