Open mariesoret opened 2 years ago
Hi, thanks for stopping by!
statannotations
is built to work with seaborn
, I didn't expect it to "almost" work with pandas out of the box. This could also simply be because you chose the first two groups only, I don't know.
This is an interesting idea. It might be possible to create a Plotter
instance to cover pd.DataFrame.boxplot
, it's worth investigating if people are interested.
Hi, thanks for your answer!
just for info in case you follow up: i tired with all possible combination of datasets ("initial state", "working phase"), ("initial state", "offset phase") and ("working phase", "offset phase") and observed the same offset on x of one tick to the left.
Hi, i'm using your very helpful package to annotate datasets that i store and plot using pandas data frame methods. When adding stat annotation to data frame boxplot layout, the lines presents an offset on x. To illustrate my problem i plotted the data first using the data frame method and then using seaborn library.
the result :
p-value annotation legend: ns: p <= 1.00e+00 : 1.00e-02 < p <= 5.00e-02 : 1.00e-03 < p <= 1.00e-02 : 1.00e-04 < p <= 1.00e-03 ****: p <= 1.00e-04
Initial state vs. Working phase: Welch's t-test independent samples, P_val:5.684e-272 t=3.485e+02 p-value annotation legend: ns: p <= 1.00e+00 : 1.00e-02 < p <= 5.00e-02 : 1.00e-03 < p <= 1.00e-02 : 1.00e-04 < p <= 1.00e-03 ****: p <= 1.00e-04
Initial state vs. Working phase: Welch's t-test independent samples, P_val:5.684e-272 t=3.485e+02