(self)
return '\n\n'.join(string_list)
Returns a string with the content of all the story.
Returns a string with the content of all the story.
Returns a string with the content of all the story .
def to_string(self):
        """Returns a string with the content of all the story."""
        self.reset()
        string_list = []
        for block in self.blocks:
            if block.TYPE == 'text':
                string_list.append(block.text)
            elif block.TYPE == 'view':
                search_obj = block.view
                data_frame = search_obj.to_pandas()
                string_list.append(data_frame.to_string(index=False))
            elif block.TYPE == 'aggregation':
                agg_obj = self._sketch.get_aggregation(block.agg_id)
                # TODO: Support charts.
                data_frame = agg_obj.table
                string_list.append(data_frame.to_string(index=False))
        return '\n\n'.join(string_list)
def to_string ( self ) : self . reset ( ) string_list = [ ] for block in self . blocks : if block . TYPE == 'text' : string_list . append ( block . text ) elif block . TYPE == 'view' : search_obj = block . view data_frame = search_obj . to_pandas ( ) string_list . append ( data_frame . to_string ( index = False ) ) elif block . TYPE == 'aggregation' : agg_obj = self . _sketch . get_aggregation ( block . agg_id ) # TODO: Support charts. data_frame = agg_obj . table string_list . append ( data_frame . to_string ( index = False ) ) return '\n\n' . join ( string_list )