I have a pandas data frame which looks like this:
Age Sex
23 Male
34 Female
38 Female
32 Male
33 Female
20 Male
34 Male
I need to group it and tabulate it so that it looks like this
Age Male Female
21 - 25 2 0
26 - 30 0 0
31 - 35 2 2
36 - 40 0 1
How can I do this is Pandas?