src/whylogs/core/statistics/numbertracker.py
def track(self, number):
        """
        Add a number to statistics tracking

        Parameters
        ----------
        number : int, float
            A numeric value
        """
        if (
            pd.isnull(number)
            or (not isinstance(number, numbers.Real))
            or isinstance(number, bool)
        ):
            # XXX: this type checking may still be fragile in python.
            return
        self.variance.update(number)
        self.theta_sketch.update(number)
        self.frequent_numbers.update(number)
        # TODO: histogram update
        # Update floats/ints counting
        f_value = float(number)
        self.histogram.update(f_value)
        if self.floats.count > 0:
            self.floats.update(f_value)
        # Note: this type checking is fragile in python.  May want to include
        # numpy.integer in the type check
        elif isinstance(number, int):
            self.ints.update(number)
        else:
            self.floats.add_integers(self.ints)
            self.ints.set_defaults()
            self.floats.update(f_value)

        Add a number to statistics tracking

        Parameters
        ----------
        number : int, float
            A numeric value
        
Add a number to statistics tracking
Parameters

number : int, float
A numeric value
Add a number to statistics tracking Parameters number : int float A numeric value
def track(self, number):
        if (
            pd.isnull(number)
            or (not isinstance(number, numbers.Real))
            or isinstance(number, bool)
        ):
            return
        self.variance.update(number)
        self.theta_sketch.update(number)
        self.frequent_numbers.update(number)
        f_value = float(number)
        self.histogram.update(f_value)
        if self.floats.count > 0:
            self.floats.update(f_value)
        elif isinstance(number, int):
            self.ints.update(number)
        else:
            self.floats.add_integers(self.ints)
            self.ints.set_defaults()
            self.floats.update(f_value)
def track ( self , number ) : if ( pd . isnull ( number ) or ( not isinstance ( number , numbers . Real ) ) or isinstance ( number , bool ) ) : return self . variance . update ( number ) self . theta_sketch . update ( number ) self . frequent_numbers . update ( number ) f_value = float ( number ) self . histogram . update ( f_value ) if self . floats . count > 0 : self . floats . update ( f_value ) elif isinstance ( number , int ) : self . ints . update ( number ) else : self . floats . add_integers ( self . ints ) self . ints . set_defaults ( ) self . floats . update ( f_value )
Add a number to statistics tracking
Parameters
Add a number to statistics tracking Parameters
"""
        Add a number to statistics tracking

        Parameters
        ----------
        number : int, float
            A numeric value
        """ # XXX: this type checking may still be fragile in python. # TODO: histogram update # Update floats/ints counting # Note: this type checking is fragile in python.  May want to include # numpy.integer in the type check
self
number