_LIST=[]
J=1
for i,r in df.iterrows():
_VAR=r["A"]
if (_VAR==_LIST[J-1]):
I just want to compare _VAR value to the value in list which I got in last iteration. but getting error on this line, "List Index Out Of Range"
Here "A" is a column in dataframe df.
_Var.isin(_LIST).