Hi @Jason4,
You can use the boxmean
property to add the mean as a dashed line. See https://plot.ly/python/box-plots/#box-plot-styling-mean--standard-deviation. I donโt think itโs possible to replace the solid median line with the mean though.
Hope that helps,
-Jon