data/feature_extraction.py
def compute_avg(lst: str) -> float:
        """Computes the average of the list.

        Args:
            lst: A str of list representation.

        Returns: A float indicating the average of the list.
        """
        if pd.isna(lst):
            return 0.0
        if len(eval(lst)) == 0:
            return 0.0
        return sum(eval(lst)) / len(eval(lst))
Computes the average of the list.

        Args:
            lst: A str of list representation.

        Returns: A float indicating the average of the list.
        
Computes the average of the list.
Computes the average of the list .
def compute_avg(lst: str) -> float:
        if pd.isna(lst):
            return 0.0
        if len(eval(lst)) == 0:
            return 0.0
        return sum(eval(lst)) / len(eval(lst))
def compute_avg ( lst : str ) -> float : if pd . isna ( lst ) : return 0.0 if len ( eval ( lst ) ) == 0 : return 0.0 return sum ( eval ( lst ) ) / len ( eval ( lst ) )
Computes the average of the list.
Computes the average of the list .
"""Computes the average of the list.

        Args:
            lst: A str of list representation.

        Returns: A float indicating the average of the list.
        """
lst
str
A str of list representation.
A str of list representation .