I have a sparse dataframe with a lot of '0's. There are totally 3 columns. How can I delete the rows that contain two '0's or more. For example:
df = pd.DataFrame({'a': [0, 1, 2, 3], 'b': [0, 0, 5, 7], 'c': [0, 0, 0, 0]})
df =
a b c
0 0 0 0
1 1 0 0
2 2 5 0
3 3 7 0
The result should be:
df =
a b c
0 2 5 0
1 3 7 0