def DONCH_L(df, n, field = 'low'): DC_L = pd.rolling_min(df[field], n) return pd.Series(DC_L, name = 'DONCH_L'+ field[0].upper() + str(n))