(self, sketch, zip_file)
Export all events that have been starred and store in a ZIP file.
Export all events that have been starred and store in a ZIP file.
Export all events that have been starred and store in a ZIP file .
def _export_starred_events(self, sketch, zip_file):
        """Export all events that have been starred and store in a ZIP file."""
        event_frame = self._get_all_events_with_a_label('__ts_star', sketch)

        string_io = io.StringIO()
        event_frame.to_csv(string_io, index=False)
        string_io.seek(0)
        zip_file.writestr(
            'events/starred_events.csv', data=string_io.read())
def _export_starred_events ( self , sketch , zip_file ) : event_frame = self . _get_all_events_with_a_label ( '__ts_star' , sketch ) string_io = io . StringIO ( ) event_frame . to_csv ( string_io , index = False ) string_io . seek ( 0 ) zip_file . writestr ( 'events/starred_events.csv' , data = string_io . read ( ) )