src/whylogs/core/statistics/datatypes/stringtracker.py
def to_summary(self):
        """
        Generate a summary of the statistics

        Returns
        -------
        summary : StringsSummary
            Protobuf summary message.
        """
        if self.count == 0:
            return None
        unique_count = self.theta_sketch.to_summary()
        opts = dict(unique_count=unique_count,)
        if unique_count.estimate < MAX_SUMMARY_ITEMS:
            frequent_strings = from_string_sketch(self.items)
            if frequent_strings is not None:
                opts["frequent"] = frequent_strings

        return StringsSummary(**opts)

        Generate a summary of the statistics

        Returns
        -------
        summary : StringsSummary
            Protobuf summary message.
        
Generate a summary of the statistics
Returns

summary : StringsSummary
Protobuf summary message.
Generate a summary of the statistics Returns summary : StringsSummary Protobuf summary message .
def to_summary(self):
        if self.count == 0:
            return None
        unique_count = self.theta_sketch.to_summary()
        opts = dict(unique_count=unique_count,)
        if unique_count.estimate < MAX_SUMMARY_ITEMS:
            frequent_strings = from_string_sketch(self.items)
            if frequent_strings is not None:
                opts["frequent"] = frequent_strings
        return StringsSummary(**opts)
def to_summary ( self ) : if self . count == 0 : return None unique_count = self . theta_sketch . to_summary ( ) opts = dict ( unique_count = unique_count , ) if unique_count . estimate < MAX_SUMMARY_ITEMS : frequent_strings = from_string_sketch ( self . items ) if frequent_strings is not None : opts [ "frequent" ] = frequent_strings return StringsSummary ( ** opts )
Generate a summary of the statistics
Returns
Generate a summary of the statistics Returns
"""
        Generate a summary of the statistics

        Returns
        -------
        summary : StringsSummary
            Protobuf summary message.
        """
self