-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TabularData: Add dropna
method
#6812
Conversation
@daavoo can you provide some context, where this functionality will be used? |
This method mimics pandas `dropna`.
fc5c0f3
to
cc4cba4
Compare
@@ -181,6 +182,35 @@ def as_dict( | |||
{k: self._columns[k][i] for k in keys} for i in range(len(self)) | |||
] | |||
|
|||
def dropna(self, axis: str = "rows"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about adding a new argument how : {‘any’, ‘all’}. Not required for this PR. Other useful arguments are subset
that would protect some important columns / rows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats a good idea and would be in line with pandas API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just borrows ideas from Pandas
, but Pandas
is too heavy for this work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't subset
be effectively making --include
overriding drop
?
This is a pre-requisite for #4455