-
Notifications
You must be signed in to change notification settings - Fork 121
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
feat: add duckdb dataframe drop_nulls
#1811
Conversation
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.
awesome, thanks for including a test case with a space π
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.
@@ -107,7 +107,8 @@ def with_row_index(self, name: str = "index") -> Self: | |||
self._compliant_frame.with_row_index(name), | |||
) | |||
|
|||
def drop_nulls(self: Self, subset: str | list[str] | None = None) -> Self: | |||
def drop_nulls(self: Self, subset: str | list[str] | None) -> Self: |
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.
wait I think it's fine for narwhals.DataFrame.drop_nulls
to default to None
? so users can just call df.drop_nulls()
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.
This is the BaseFrame
implementation, the default still remains in DataFrame
and LazyFrame
and are passed along
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.
oops sorry! all good then π
What type of PR is this? (check all applicable)
Checklist
If you have comments or can explain your changes, please do so below