I have below Data Frame.
A B C D E F G
1 4 9 4 6 9 8
2 2 2 2 2 5 9
2 2 2 2 2 2 2
2 6 9 5 4 4 5
2 8 1 9 5 8 9
2 2 2 5 6 3 6
I need output as below:
A B C D E F G
1 4 9 4 6 9 8
2 6 9 5 4 4 5
2 8 1 9 5 8 9
2 2 2 5 6 3 6
It means rows having more than three columns as same value
should be deleted.
We can see in the Second and Third rows are having 5 and 7 columns as same value respectively . We need to delete those rows.
Could any please help me.