Dummy Encoding In Python Dataframe Group By Example