how to get 95 percentile in groupby pandas code example Example: pandas groupby percentile df.groupby('C').quantile(.95)