Statistics, Python, Plotting, Seaborn.
pandas as pd df = pd.read_csv("data.csv") x_values = df["x_column"].unique() pvalues = [] for x in x_values: stat, pvalue = scipy.stats.ttest_ind( df[(df["x_column"] == x) & (df["hue_column"] == hue1)], df[(df["x_column"] == x) & (df["hue_column"] == hue2)] ) Step 2: Converting p-values into