docs: def as_dataframe(self, pattern='*', max_rows=None):
      """Creates a pandas dataframe from the descriptors that match the filters.
  
      Args:
        pattern: An optional pattern to further filter the descriptors. This can
            include Unix shell-style wildcards. E.g. ``"compute*"``,
            ``"*/cpu/load_??m"``.
        max_rows: The maximum number of descriptors to return. If None, return
            all.
  
      Returns:
        A pandas dataframe containing matching metric descriptors.
      """
      data = []
      for i, metric in enumerate(self.list(pattern)):
        if max_rows is not None and i >= max_rows:
          break
        labels = ', '. join([l.key for l in metric.labels])
        data.append([
            metric.type, metric.display_name, metric.metric_kind,
            metric.value_type, metric.unit, labels])
  
      return pandas.DataFrame(data, columns=self._DISPLAY_HEADERS)