I am using the following code to create a box plot:
df.assign(index=df.groupby('stage').cumcount()).pivot('index','stage','days').plot(kind='box', sym='bD', showmeans = True)
The code works fine, but I am wondering would it be possible to add the record number for each category (box)? Thanks!