fuzzyfields/fuzzyfield.py
def preprocess(value: Any) -> Any:
        """Perform initial cleanup of a raw input value. This method is
        automatically invoked before :meth:`FuzzyField.validate`.

        :param value:
            raw input value
        :returns:
            the argument, stripped of leading and trailing whitespace
            and carriage returns if it is a string.
            If the argument is null, return None.
            Otherwise return the argument unaltered.
        """
        if isinstance(value, str):
            value = value.strip()
            if value in NA_VALUES:
                return None
        # Accept NaN in place of an empty string because
        # pandas converts empty cells to NaNs when parsing CSV files
        elif isnull(value):
            return None
        return value
Perform initial cleanup of a raw input value. This method is
        automatically invoked before :meth:`FuzzyField.validate`.

        :param value:
            raw input value
        :returns:
            the argument, stripped of leading and trailing whitespace
            and carriage returns if it is a string.
            If the argument is null, return None.
            Otherwise return the argument unaltered.
        
Perform initial cleanup of a raw input value. This method is
automatically invoked before :meth:`FuzzyField.validate`.
Perform initial cleanup of a raw input value . This method is automatically invoked before : meth : ` FuzzyField . validate ` .
def preprocess(value: Any) -> Any:
        if isinstance(value, str):
            value = value.strip()
            if value in NA_VALUES:
                return None
        elif isnull(value):
            return None
        return value
def preprocess ( value : Any ) -> Any : if isinstance ( value , str ) : value = value . strip ( ) if value in NA_VALUES : return None elif isnull ( value ) : return None return value
Perform initial cleanup of a raw input value.
Perform initial cleanup of a raw input value .
"""Perform initial cleanup of a raw input value. This method is
        automatically invoked before :meth:`FuzzyField.validate`.

        :param value:
            raw input value
        :returns:
            the argument, stripped of leading and trailing whitespace
            and carriage returns if it is a string.
            If the argument is null, return None.
            Otherwise return the argument unaltered.
        """ # Accept NaN in place of an empty string because # pandas converts empty cells to NaNs when parsing CSV files
the argument, stripped of leading and trailing whitespace
and carriage returns if it is a string.
If the argument is null, return None.
Otherwise return the argument unaltered.
the argument stripped of leading and trailing whitespace and carriage returns if it is a string . If the argument is null return None . Otherwise return the argument unaltered .
value
Any
raw input value
raw input value