Jan-03-2021, 04:44 AM
Hi @tirtha9,
Good day!
Hope the below answer helps
Good day!
Hope the below answer helps
df2['ISBearish'] = df2['Date'].apply(lambda x: (Scanner(df2, x).isbearish2())) print(df2)
Output: Date Open High Low Close ISBearish
0 2020-01-31 788.00 791.50 764.00 767.1 True
1 2020-02-01 771.85 798.00 728.40 742.8 None
2 2020-02-03 754.00 794.95 752.45 785.7 None
3 2020-02-04 784.70 794.50 773.60 776.9 None