Pandas: transforming the DataFrameGroupBy object to desired format,df.index = ['/'.join(i) for i in df.index]