0

I have a Dataframe which is it multi indexed this way

MultiIndex([(                        'index',),
            (                       'height',),
            (                        'width',),
            (                    'start_day',),
            (                      'end_day',),
            (                         'shop',),
            (                       'budget',),
            (                      'surface',),
            (            'number_of_banners',),
            (                         'days',),
            (                   'in_weekend',),
            ('in_the_beginning_of_the_month',),
            (                 'season_start',),
            (                   'season_end',),
            (                'total_surface',),
            (               'format__banner',),
            (            'format__butterfly',),
            (               'format__highco',),
            (           'format__lucky cart',),
            (                  'format__pmp',),
            (                 'format__shop',),
            (             'format__showcase',),
            (            'format__stoprayon',),
            (                   'format__tg',),
            (                  'chain_id__7',),
            (                 'chain_id__10',),
            (                 'chain_id__11',),
            (                 'chain_id__12',),
            (                  'month_start',),
            (                    'month_end',)],
           )

I want to either change the indexes or access the columns I tried using df=df.reset_index() but nothing changed.

Mohamed Amine
  • 177
  • 2
  • 12

0 Answers0