def render(self, format=ReportFormat.printout):
table = self._generate_table_()<EOL>if format == ReportFormat.printout:<EOL><INDENT>print(tabulate(table, headers="<STR_LIT>", tablefmt="<STR_LIT>"))<EOL><DEDENT>elif format == ReportFormat.latex:<EOL><INDENT>self._render_latex_(table)<EOL><DEDENT>elif format == ReportFormat.txt:<EOL><INDENT>self._render_txt_(table)<EOL><DEDENT>elif format == ReportFormat.csv:<EOL><INDENT>self._render_csv_(table)<EOL><DEDENT>elif format == ReportFormat.string:<EOL><INDENT>return str(tabulate(table, headers="<STR_LIT>", tablefmt="<STR_LIT>"))<EOL><DEDENT>elif format == ReportFormat.matplotlib:<EOL><INDENT>self._render_matplotlib_()<EOL><DEDENT>elif format == ReportFormat.png:<EOL><INDENT>if self.output_path is None:<EOL><INDENT>self._render_matplotlib_()<EOL><DEDENT>else:<EOL><INDENT>self._render_matplotlib_(True)<EOL><DEDENT><DEDENT>
Render the report in the specified format

:param format: The format. The default format is to print
  the report to the console.

:returns: If the format was set to 'string' then a string
  representation of the report is returned.