title: How to group by in Pandas for subcategories?
body: <p>I have a data frame which contains consumption data for the various building. The buildings are divided into few categories, further divided into subcategories. How could I return the count of the number of buildings of every subcategory itself?</p>