Jul-07-2021, 01:47 PM
Is the following a valid code? I am simply trying to compare the contents of the previous row vs the 2nd previous row.
if row['DIRECTION'].shift(1) == row['DIRECTION'].shift(2)I am getting this error: AttributeError: 'int' object has no attribute 'shift'.