I'd like to get the exact stats behind a plotly boxplot.
This seems to get me pretty close, but I'm missing Q1 and Q3.
stats = df.groupby(['Market'])['Revenue'].describe()
stats
The Q1 and Q3 seem to be different than what I see from this.
import plotly.express as px
fig = px.box(df, x="Market", y="Revenue", color="Market")
fig.update_traces(quartilemethod="exclusive")
fig.update_layout(showlegend=False)
fig.show()
It has something to do with the 'exclusive' or 'inclusive' argument, but I don't know what the difference is. Also, the default for df.groupby(['Market'])['Revenue'].describe() seems to match the 'inclusive' argument.
Q1: what's the difference between 'exclusive' and 'inclusive'?
Q2: does df.groupby(['Market'])['Revenue'].describe() have an 'exclusive' argument?
