code: def show(self, n=20, truncate=True, vertical=False):
          
          if isinstance(truncate, bool) and truncate:
              print(self._jdf.showString(n, 20, vertical))
          else:
              print(self._jdf.showString(n, int(truncate), vertical))
docs: Prints the first ``n`` rows to the console.
  
          :param n: Number of rows to show.
          :param truncate: If set to True, truncate strings longer than 20 chars by default.
              If set to a number greater than one, truncates long strings to length ``truncate``
              and align cells right.
          :param vertical: If set to True, print output rows vertically (one line
              per column value).
  
          >>> df
          DataFrame[age: int, name: string]
          >>> df.show()
          +---+-----+
          |age| name|
          +---+-----+
          |  2|Alice|
          |  5|  Bob|
          +---+-----+
          >>> df.show(truncate=3)
          +---+----+
          |age|name|
          +---+----+
          |  2| Ali|
          |  5| Bob|
          +---+----+
          >>> df.show(vertical=True)
          -RECORD 0-----
           age  | 2
           name | Alice
          -RECORD 1-----
           age  | 5
           name | Bob