I understand that there have been already threads about deleting rows containing NaN in Python, but my question is a little bit different. I don't understand why it keeps producing this error using this code:
data = data.drop(data.index[0])
Also, could use the delete method as well? But I don't know how to do that one. I would imagine it goes something like this
delete data[0]
I have attached a picture of python outputting the excel data fine, but deleting the row containing NaN is driving me crazy!