What is the error in this code is it due to the line df[\'SuperTrend\'] = np.nan?
def SuperT(df, f, n): df[\'Upper Basic\'] = (df[\'High\'] +df[\'Low\'