code: def invert_dataframe_axis(fct):
      '''
      Make dataframe index column names,
      and vice et versa
      '''
      def inner(*args, **kwargs):
          df_to_invert = fct(*args, **kwargs)
          return pd.DataFrame(df_to_invert.to_dict().values(),
                              index=df_to_invert.to_dict().keys())
      return innef invert_dataframe_axis(fct):
      '''
      Make dataframe index column names,
      and vice et versa
      '''
      def inner(*args, **kwargs):
          df_to_invert = fct(*args, **kwargs)
          return pd.DataFrame(df_to_invert.to_dict().values(),
                              index=df_to_invert.to_dict().keys())
      return inner
docs: Make dataframe index column names,
      and vice et versa