def set_to_zero(df, set_to_zero_if_abs_below):
    """Round values to zero if they are below a cutoff
    Args:
        df: (pd.DataFrame | pd.Series)
        set_to_zero_if_abs_below: (float) round all values below this cutoff in magnitude to zero
    Returns:
        pd.Series of rounded values
    """
    zero_df = df.copy()
    zero_df[zero_df.abs() < set_to_zero_if_abs_below] = 0
    return zero_df
