-1

I’ve read a file into a dataframe, and every second row is n/a. How do I remove the offending blank rows?

1 Answers1

1

I am assuming there are many ways to do this. But I just use iloc

df = df.iloc[::2,:]

Try it and let me know if it worked for you.