Indexing #1412
Answered
by
JovanVeljanoski
dharik-arsath
asked this question in
Q&A
Indexing
#1412
-
How to drop row by its index In my case I have few rows with ' ' empty strings I can able to find that by using df[df.colname == " "] but now I have to delete those rows by index. How can I do that? One way I can think of is df.colname.str.replace(" ",Nan) but here how to set nan value in vaex? |
Beta Was this translation helpful? Give feedback.
Answered by
JovanVeljanoski
Jun 18, 2021
Replies: 1 comment
-
With vaex the data is immutable, so you don't delete it. You can filter out rows pretty easily though. You had the right idea: df[~(df.x == '')] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dharik-arsath
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With vaex the data is immutable, so you don't delete it.
You can filter out rows pretty easily though. You had the right idea: