collapse hierarchical column index to level 0 in dataframe `df`,df.columns = df.columns.get_level_values(0)