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: allow tpc-h q1 to be run with Dask as backend #747

Merged
merged 7 commits into from
Aug 8, 2024

Conversation

MarcoGorelli
Copy link
Member

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

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

Related issues

  • Related issue #
  • Closes #

Checklist

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

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

@github-actions github-actions bot added the enhancement New feature or request label Aug 8, 2024
@MarcoGorelli MarcoGorelli merged commit 328718f into narwhals-dev:main Aug 8, 2024
20 checks passed
Comment on lines +96 to +98
lambda df: [
dd.from_pandas(pd.Series([len(df._native_dataframe)], name="len"))["len"]
],
Copy link
Member

@FBruzzesi FBruzzesi Aug 8, 2024

Choose a reason for hiding this comment

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

I am already late to the party, but maybe we can keep this lazy with:

lambda df: [
    df._native_dataframe.loc[:, df._native_dataframe.columns[0]].size
],

or

lambda df: [df._native_dataframe.index.size],

Copy link
Member Author

Choose a reason for hiding this comment

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

ooooh man, thanks! I should've waited here 😳

Copy link
Member

@FBruzzesi FBruzzesi Aug 8, 2024

Choose a reason for hiding this comment

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

All good (until release) 😁

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