I’ve read a file into a dataframe, and every second row is n/a. How do I remove the offending blank rows?
Asked
Active
Viewed 942 times
-1
-
Df.dropna(in place=true) – BLimitless May 15 '21 at 02:25
1 Answers
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.

Marcos Feijoo
- 26
- 1