I have a dataframe like below:
A B C 4.43 NaN 1.11 3.70 0.48 0.79 2.78 -0.29 1.26 1.78 2.90 1.13 40.70 -0.03 0.55 51.75 0.29 1.45 3.65 1.74 0.37 2.93 1.56 1.64 3.43 NaN NaN 2.93 NaN NaN 10.37 NaN NaN now If Column A > 7, I want to drop Column B and C like below:
A B C 4.43 NaN 1.11 3.70 0.48 0.79 2.78 -0.29 1.26 1.78 2.90 1.13 40.70 NaN NaN 51.75 NaN NaN 3.65 1.74 0.37 2.93 1.56 1.64 3.43 NaN NaN 2.93 NaN NaN 10.37 NaN NaN How can I achieve that?