Coggle requires JavaScript to display documents.
Use loc[x, y] instead of [x][y]
df = data.groupby(...).agg(...) df.columns = df.columns.droplevel(0) # OR df.columns = ["_".join(x) for x in df.columns.ravel()]