I have the following dataframe: Account ID Subscription type Cancellation flag123 Basic 1222 Basic 0234 Hybrid 1345 Hybrid 1 Now I would like to calculate the percentage of cancellations, but grouped by the subscription type. I would like to get it in a format so that I can easily create a bar chart out of the percentages grouped by the subscription type. Continue reading...