from pyspark.sql import functions as f class Outlier(): def __init__(self, df): self.df = df def _calculate_bounds(self): bounds = { c: dict(