I have got a dataframe with data, which I first have to group, and caculate the median of the 8th quantile.
I used the following formula
d1=d2.groupby(['AK','PK','PA']).quantile(0.2,interpolation='midpoint')
However, it does not show me the desired results. Do you have any ideas? Thank you