data/feature_extraction.py
def compute_nonzero_count(lst: str) -> int:
        """Computes the count of nonzero elements in the list.

        Args:
            lst: A str of list representation.

        Returns: A integer indicating the count of nonzero elements in the list.
        """
        if pd.isna(lst):
            return 0
        lst = eval(lst)
        count = 0
        for e in lst:
            if e != 0:
                count += 1
        return count
Computes the count of nonzero elements in the list.

        Args:
            lst: A str of list representation.

        Returns: A integer indicating the count of nonzero elements in the list.
        
Computes the count of nonzero elements in the list.
Computes the count of nonzero elements in the list .
def compute_nonzero_count(lst: str) -> int:
        if pd.isna(lst):
            return 0
        lst = eval(lst)
        count = 0
        for e in lst:
            if e != 0:
                count += 1
        return count
def compute_nonzero_count ( lst : str ) -> int : if pd . isna ( lst ) : return 0 lst = eval ( lst ) count = 0 for e in lst : if e != 0 : count += 1 return count
Computes the count of nonzero elements in the list.
Computes the count of nonzero elements in the list .
"""Computes the count of nonzero elements in the list.

        Args:
            lst: A str of list representation.

        Returns: A integer indicating the count of nonzero elements in the list.
        """
lst
str
A str of list representation.
A str of list representation .