Replies: 7 comments
-
I am not sure I understand. can you show an example? |
Beta Was this translation helpful? Give feedback.
-
<style>
</style>
|
Beta Was this translation helpful? Give feedback.
-
Imagine dataframe like above; I only want to delete rows where values are missing in OUTPUT column, but dont care about any other columns. So, i just want to drop rows no 3 and 7 since they dont have output label. So if I use drop_policy as any, it will also delete rows 4, 8 and 10 which is not what i want. Hope i am making some sense here |
Beta Was this translation helpful? Give feedback.
-
I see. you need a column-specific drop logic. I do not have that interface currently. You have to do it manually. |
Beta Was this translation helpful? Give feedback.
-
Actually I take that back. You can use |
Beta Was this translation helpful? Give feedback.
-
right, i see. I can use std::isnan to check for nan values in functor, and then remove rows contains nan in output column? |
Beta Was this translation helpful? Give feedback.
-
still its a good feature to have in drop_missing() if you add it some day. Drop only those rows when some specific column has missing values |
Beta Was this translation helpful? Give feedback.
-
Hi
I have seen docs of drop_missing() and it only drops rows as per drop policy when all or some columns have NA values. I want to drop all rows when certain column (output) has missing values. How to proceed?
Beta Was this translation helpful? Give feedback.
All reactions