I am passing two lists of coordinates obtained by selectively appending them from my original data frame. I use them to create a boxplot in which the median of those values is drawn.
df = pd.read_csv("path.csv")
# get data from dataframe depending on certain conditions and store it in xValue and yValue
...
g = sns.JointGrid(x=xValues, y=yValues)
g.plot_joint(sns.scatterplot, size=0.1, color='b', linewidth=0)
g.plot_marginals(sns.boxplot, width=0.3, color='b',notch=True, showcaps=False, medianprops={"color": "coral"})
Boxplot will have to compute the median value in order to show it on the graph, so is there any way to get that numerical value?
This question is different from Labeling boxplot in seaborn with median value, Extract outliers from Seaborn Boxplot and Getting values in Seaborn boxplot because these 3 questions use columns directly from the data frame. If you read carefully my question, the data I pass to the boxplot function is an extract of each of the columns of the data frame.