src/whylogs/core/columnprofile.py
def track(self, value):
        """
        Add `value` to tracking statistics.
        """
        self.counters.increment_count()
        if value is None:
            self.counters.increment_null()
            return

        # TODO: ignore this if we already know the data type
        if isinstance(value, str):
            self.string_tracker.update(value)

        # TODO: Implement real typed data conversion
        typed_data = TypedDataConverter.convert(value)

        if not pd.isnull(typed_data):
            self.cardinality_tracker.update(typed_data)
            self.frequent_items.update(typed_data)
        dtype = TypedDataConverter.get_type(typed_data)
        self.schema_tracker.track(dtype)

        if isinstance(typed_data, bool):
            # Note: bools are sub-classes of ints in python, so we should check
            # for bool type first
            self.counters.increment_bool()
        self.number_tracker.track(typed_data)

        Add `value` to tracking statistics.
        
Add `value` to tracking statistics.
Add ` value ` to tracking statistics .
def track(self, value):
        self.counters.increment_count()
        if value is None:
            self.counters.increment_null()
            return
        if isinstance(value, str):
            self.string_tracker.update(value)
        typed_data = TypedDataConverter.convert(value)
        if not pd.isnull(typed_data):
            self.cardinality_tracker.update(typed_data)
            self.frequent_items.update(typed_data)
        dtype = TypedDataConverter.get_type(typed_data)
        self.schema_tracker.track(dtype)
        if isinstance(typed_data, bool):
            self.counters.increment_bool()
        self.number_tracker.track(typed_data)
def track ( self , value ) : self . counters . increment_count ( ) if value is None : self . counters . increment_null ( ) return if isinstance ( value , str ) : self . string_tracker . update ( value ) typed_data = TypedDataConverter . convert ( value ) if not pd . isnull ( typed_data ) : self . cardinality_tracker . update ( typed_data ) self . frequent_items . update ( typed_data ) dtype = TypedDataConverter . get_type ( typed_data ) self . schema_tracker . track ( dtype ) if isinstance ( typed_data , bool ) : self . counters . increment_bool ( ) self . number_tracker . track ( typed_data )
Add `value` to tracking statistics.
Add ` value ` to tracking statistics .
"""
        Add `value` to tracking statistics.
        """ # TODO: ignore this if we already know the data type # TODO: Implement real typed data conversion # Note: bools are sub-classes of ints in python, so we should check # for bool type first
self
value