Team, I have a huge pandas data frame of historical stock OHLC data. I want to compare a particular column value , for e.g. I want to compare today's open with yesterdays open or today's low with yesterdays low ( I have almost 5000 rows to compare )
I tried something like followed, but it gives me just one constant value..
#calculate Low Travel point
df['1back'] = df['low'].iloc[-1]
any suggestion plese??