Consider I have a dataframe that looks like this:
A B C D
0 0 1 2 3
1 4 5 6 7
2 8 9 10 11
What I need to do is to sum the C and D and if the sum is higher than 10 remove the entire row. Howerver I can't acess the columns by their names, I need to do it by their position.
How can I do it in pandas?
EDIT: Another problem.
A B C D
0 0 NaN 2 3
1 4 5 NaN NaN
2 8 9 10 11
How can I keep the rows that have at least two values in the columns B, C and D?