Statistics, Python, Plotting, Seaborn.
something like this. y_position = df[y].max() * 1.2 for idx, pval in enumerate(pvalue_asterisks): plt.text(x=idx, y=y_position, s=pval) Note the somewhat dynamic position in y where i use the maximum value of my data and some more to place the spots. Similarly, the idx value works great when using