<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def show(self, n=20, truncate=True, vertical=False):
 """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). DataFrame[age: int, name: string] +---+-----+ |age| name| +---+-----+ | 2|Alice| | 5| Bob| +---+-----+ +---+----+ |age|name| +---+----+ | 2| Ali| | 5| Bob| +---+----+ -RECORD 0----- age | 2 name | Alice -RECORD 1----- age | 5 name | Bob """

        if isinstance(truncate, bool) and truncate:
            print(self._jdf.showString(n, 20, vertical))
        else:
            print(self._jdf.showString(n, int(truncate), vertical))