warn_transformer/transformers/wa.py
def check_if_closure(self, row: typing.Dict) -> typing.Optional[bool]:
        """Determine whether a row is a closure or not.

        Args:
            row (dict): The raw row of data.

        Returns: A boolean or null
        """
        temporary = row["Type of Layoff"].lower() == "temporary"
        if temporary:
            return False
        return row["Closure Layoff"].lower() == "closure"
Determine whether a row is a closure or not.

        Args:
            row (dict): The raw row of data.

        Returns: A boolean or null
        
Determine whether a row is a closure or not.
Determine whether a row is a closure or not .
def check_if_closure(self, row: typing.Dict) -> typing.Optional[bool]:
        temporary = row["Type of Layoff"].lower() == "temporary"
        if temporary:
            return False
        return row["Closure Layoff"].lower() == "closure"
def check_if_closure ( self , row : typing . Dict ) -> typing . Optional [ bool ] : temporary = row [ "Type of Layoff" ] . lower ( ) == "temporary" if temporary : return False return row [ "Closure Layoff" ] . lower ( ) == "closure"
Determine whether a row is a closure or not.
Determine whether a row is a closure or not .
"""Determine whether a row is a closure or not.

        Args:
            row (dict): The raw row of data.

        Returns: A boolean or null
        """
self
row
typing.Dict
The raw row of data.
The raw row of data .