I have a pandas dataframe with dimensions 89 rows by 13 columns. I want to remove an entire row if NaN
appears within the first five columns. Here is an example.
LotName C15 C16 C17 C18 C19 Spots15 Spots16 ...
Cherry St 439 464 555 239 420 101 101 ...
Springhurst NaN NaN NaN NaN NaN 12 12
Barton Lot 34 24 43 45 39 10 9 ...
In the above example, I would want to remove the Springhurst observation, as it contains NaN
within the first five columns. How would I be able to do this in Python?