Is there any way that I can drop the value if its index = column index.
I mean, this is my toy dataframe
d = {'Non': [1, 2,4,5,2,7], 'Schzerando': [3, 4,8,4,7,7], 'cc': [1,2,0.75,0.25,0.3,1]}
df = pd.DataFrame(data=d)
df
Then I just want to keep the row which df["cc"] == 1 and 2, like this
Toy dataframe to try.