问题
I'm making a time series boxplot using seaborn package but I can't put a label on my outliers.
My data is a dataFrame of 3 columns : [Month , Id , Value]
that we can fake like that :
### Sample Data ###
Month = numpy.repeat(numpy.arange(1,11),10)
Id = numpy.arange(1,101)
Value = numpy.random.randn(100)
### As a pandas DataFrame ###
Ts = pandas.DataFrame({'Value' : Value,'Month':Month, 'Id': Id})
### Time series boxplot ###
ax = seaborn.boxplot(x="Month",y="Value",data=Ts)
I have one boxplot for each month and I'm trying to put the Id as a label of the three outliers on the plot here (1).
来源:https://stackoverflow.com/questions/40470175/boxplot-outliers-labels-python