code: def _to_file_format(self, iamc_index):
          
          df = self.timeseries(iamc_index=iamc_index).reset_index()
          df = df.rename(columns={c: str(c).title() for c in df.columns})
          return df
docs: Return a dataframe suitable for writing to a file