I am working on a journal entry database I want to check if row 1 and 2, then row 2 and 3,(and so on) have the same amounts based on same account no. (to check debit credit postings, please note, i have already sorted the data based on absolute function on amounts) I have used the following for loop:
Step 1:
Elimination=[]
Step2:
for i, j in range(sales_acc):
if sales_acc ["Amount LC"][i]==sales_acc["Amount LC"][j] & sales_acc ["ACCOUNTNUMBER"][i]==sales_acc["ACCOUNTNUMBER"][j]:
Elimination.append(i)
Elimination.append(j)
else:
pass
but this forloop gives me "expected an indented block"error
Can someone help me.