I have a pandas dataframe which looks like this (but is actaully much bigger):
a b c d e f g h i j
0| 0 1 2 3 4 -500 -500 5 6 7
1| 2 3 4 5 6 -500 -500 6 5 4
2|-500 -500 -500 -500 -500 -500 -500 -500 -500 -500
3| 3 4 5 2 1 -500 -500 5 3 6
I want to delete only entire rows which contain -500 (2) and entire columns(f and g). My dataframe is generated automatically, and I do not already know which columns and rows contain -500.
Would anyone know a way to do this?
Thanks!