In this case columns satisfying the formula:(1,2,5,7)
condition : col1 + col2 - col5 = col7
I want to find columns from the data frame which satisfy these conditions :
- Condition to be satisfied : coln + colm - colo = colp .
- Condition works 90% of the time.
Edit : This is a specific case where I know what columns satisfy the condition. I was looking for a more dynamic approach where the columns are iterated through all combinations ,and maybe the combination with the least deviation/best match is chosen.
Is this a possibility?