Skip to content
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

Merged
merged 5 commits into from
Jan 16, 2025
Merged

Conversation

FBruzzesi
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

@FBruzzesi FBruzzesi added the enhancement New feature or request label Jan 15, 2025
Copy link
Member

@MarcoGorelli MarcoGorelli left a 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 πŸ˜„

narwhals/_duckdb/dataframe.py Outdated Show resolved Hide resolved
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving just pending on the comment

@FBruzzesi FBruzzesi merged commit e4e881b into main Jan 16, 2025
23 checks passed
@FBruzzesi FBruzzesi deleted the feat/duckdb-drop_nulls branch January 16, 2025 09:57
@@ -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:
Copy link
Member

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()

Copy link
Member Author

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

Copy link
Member

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 πŸ™Œ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants