code: def as_dataframe(self, absolute_time=False):
          
  
          import pandas as pd
  
          # When absolute_time is True,
          # use the wf_start_time as offset for the time_track()
          try:
              time = self.time_track(absolute_time)
          except KeyError:
              time = None
          if self.channel is None:
              return pd.DataFrame.from_items(
                  [(ch.channel, pd.Series(ch.data))
                      for ch in self.tdms_file.group_channels(self.group)])
          else:
              return pd.DataFrame(self._data, index=time, columns=[self.path])
docs: Converts the TDMS object to a DataFrame
  
          :param absolute_time: Whether times should be absolute rather than
              relative to the start time.
          :return: The TDMS object data.
          :rtype: pandas.DataFrame