docs: def toList(self):
          """
          Return a list with the DataFrame data.
          """
          if self.getNumCols() > 1:
              return [
                  tuple(self.getRowByIndex(i))
                  for i in range(self.getNumRows())
              ]
          else:
              return [
                  self.getRowByIndex(i)[0]
                  for i in range(self.getNumRows())
              ]