code: def as_dataframe(self):
          
          time_series = {}
          for ts_index, ts in enumerate(self.timeSeries):
              index = []
              data = []
              for value in ts.values:
                  index.append(value.simTime)
                  data.append(value.value)
              time_series[ts_index] = pd.Series(data, index=index)
          return pd.DataFrame(time_series)
docs: Return time series as pandas dataframe