def apply()

in jetstream/pre_treatment.py [0:0]


    def apply(self, df: DataFrame, col: str) -> DataFrame:
        # Silence divide-by-zero and domain warnings
        with np.errstate(divide="ignore", invalid="ignore"):
            result = np.log(df[col])
            if self.base:
                result /= np.log(self.base)
        return df.assign(**{col: result})