src/whylogs/core/statistics/numbertracker.py
def to_protobuf(self):
        """
        Return the object serialized as a protobuf message
        """
        opts = dict(
            variance=self.variance.to_protobuf(),
            compact_theta=self.theta_sketch.serialize(),
            histogram=self.histogram.serialize(),
            frequent_numbers=self.frequent_numbers.to_protobuf(),
        )
        if self.floats.count > 0:
            opts["doubles"] = self.floats.to_protobuf()
        elif self.ints.count > 0:
            opts["longs"] = self.ints.to_protobuf()
        msg = NumbersMessage(**opts)
        return msg

        Return the object serialized as a protobuf message
        
Return the object serialized as a protobuf message
Return the object serialized as a protobuf message
def to_protobuf(self):
        opts = dict(
            variance=self.variance.to_protobuf(),
            compact_theta=self.theta_sketch.serialize(),
            histogram=self.histogram.serialize(),
            frequent_numbers=self.frequent_numbers.to_protobuf(),
        )
        if self.floats.count > 0:
            opts["doubles"] = self.floats.to_protobuf()
        elif self.ints.count > 0:
            opts["longs"] = self.ints.to_protobuf()
        msg = NumbersMessage(**opts)
        return msg
def to_protobuf ( self ) : opts = dict ( variance = self . variance . to_protobuf ( ) , compact_theta = self . theta_sketch . serialize ( ) , histogram = self . histogram . serialize ( ) , frequent_numbers = self . frequent_numbers . to_protobuf ( ) , ) if self . floats . count > 0 : opts [ "doubles" ] = self . floats . to_protobuf ( ) elif self . ints . count > 0 : opts [ "longs" ] = self . ints . to_protobuf ( ) msg = NumbersMessage ( ** opts ) return msg
Return the object serialized as a protobuf message
Return the object serialized as a protobuf message
"""
        Return the object serialized as a protobuf message
        """
self