(self, data_frame)
return (
            '{0:s}\n<b>...</b><br/>'
            '<i>Table contains more records than are displayed. '
            'Only the first {1:d} records out of total {2:d} are '
            'printed out. View the full view in Timesketch to get all '
            'the results.</i>').format(
                html_code, self._DATAFRAME_HEADER_ROWS, nr_rows)
Returns a HTML formatted string from a pandas DataFrame.
Returns a HTML formatted string from a pandas DataFrame.
Returns a HTML formatted string from a pandas DataFrame .
def _data_frame_to_html(self, data_frame):
        """Returns a HTML formatted string from a pandas DataFrame."""
        nr_rows, _ = data_frame.shape
        if not nr_rows:
            return '<b>empty table</b>'

        if nr_rows <= self._DATAFRAME_HEADER_ROWS:
            return data_frame.to_html(index=False)

        html_code = data_frame.to_html(
            index=False, max_rows=self._DATAFRAME_HEADER_ROWS)
        return (
            '{0:s}\n<b>...</b><br/>'
            '<i>Table contains more records than are displayed. '
            'Only the first {1:d} records out of total {2:d} are '
            'printed out. View the full view in Timesketch to get all '
            'the results.</i>').format(
                html_code, self._DATAFRAME_HEADER_ROWS, nr_rows)
def _data_frame_to_html ( self , data_frame ) : nr_rows , _ = data_frame . shape if not nr_rows : return '<b>empty table</b>' if nr_rows <= self . _DATAFRAME_HEADER_ROWS : return data_frame . to_html ( index = False ) html_code = data_frame . to_html ( index = False , max_rows = self . _DATAFRAME_HEADER_ROWS ) return ( '{0:s}\n<b>...</b><br/>' '<i>Table contains more records than are displayed. ' 'Only the first {1:d} records out of total {2:d} are ' 'printed out. View the full view in Timesketch to get all ' 'the results.</i>' ) . format ( html_code , self . _DATAFRAME_HEADER_ROWS , nr_rows )