def print_table(self, max_rows=None, max_columns=None, output=sys.stdout): """ Print a well-formatted preview of this table to the console or any other output. :param max_rows: The maximum number of rows to display before truncating the data. :param max_columns: The maximum number of columns to display before truncating the data. :param output: A file-like object to print to. Defaults to :code:`sys.stdout`. """ print_table(self, max_rows, max_columns, output)
def print_table(self, max_rows=None, max_columns=None, output=sys.stdout, max_column_width=20): """ Print a well-formatted preview of this table to the console or any other output. :param max_rows: The maximum number of rows to display before truncating the data. :param max_columns: The maximum number of columns to display before truncating the data. :param output: A file-like object to print to. Defaults to :code:`sys.stdout`. :param max_column_width: Truncate all columns to at most this width. The remainder will be replaced with ellipsis. """ print_table(self, max_rows, max_columns, output, max_column_width)