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

Skeleton cudf polars package #15688

Merged

Conversation

wence-
Copy link
Contributor

@wence- wence- commented May 7, 2024

Description

Introduce the skeleton of a cudf_polars package. Note that we are deliberately not building any packages yet.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@wence- wence- requested review from a team as code owners May 7, 2024 15:23
@github-actions github-actions bot added the Python Affects Python cuDF API. label May 7, 2024
@wence- wence- added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change cudf.polars Issues specific to cudf.polars and removed Python Affects Python cuDF API. labels May 7, 2024
.pre-commit-config.yaml Show resolved Hide resolved
dependencies.yaml Outdated Show resolved Hide resolved
python/cudf_polars/pyproject.toml Show resolved Hide resolved
@wence- wence- force-pushed the wence/fea/cudf-polars-structure branch from 0f32757 to 8ec9471 Compare May 8, 2024 16:54
@github-actions github-actions bot added the Python Affects Python cuDF API. label May 8, 2024
@wence- wence- force-pushed the wence/fea/cudf-polars-structure branch from a37cdbb to 9d5ae66 Compare May 9, 2024 17:47
python/cudf_polars/cudf_polars/containers/column.py Outdated Show resolved Hide resolved
python/cudf_polars/pyproject.toml Outdated Show resolved Hide resolved
python/cudf_polars/pyproject.toml Outdated Show resolved Hide resolved
python/cudf_polars/pyproject.toml Show resolved Hide resolved
# flake8-pytest-style:
"PT011", # pytest.raises({exception}) is too broad, set the match parameter or use a more specific exception
# flake8-simplify
"SIM108", # Use ternary operator
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you not like the ternary in some cases? Could you give me an example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a disabled lint?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is disabling a suggestion to switch from a multi-line if/else to a ternary, right? Isn't that something we would normally like, if it does improve brevity?

I don't feel strongly, just asking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah true. I suppose it's a stylistic choice rather than "you must do one or the other". So I'd rather leave it: some single-statement assignments can be very long when written in ternary form, but clear if as if/else blocks, and I'm not sure how ruff decides when to recommend one over the other.

python/cudf_polars/pyproject.toml Show resolved Hide resolved
@wence- wence- requested review from a team as code owners May 10, 2024 09:44
@wence- wence- requested a review from msarahan May 10, 2024 09:44
@raydouglass raydouglass removed the request for review from a team May 10, 2024 13:15
Copy link
Contributor

@msarahan msarahan left a comment

Choose a reason for hiding this comment

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

When it comes time to actually build something here, I think you'll need to add a devcontainers manifest.yaml entry, like rapidsai/devcontainers#271

@wence-
Copy link
Contributor Author

wence- commented May 13, 2024

/merge

@rapids-bot rapids-bot bot merged commit 149253b into rapidsai:branch-24.06 May 13, 2024
70 checks passed
@wence- wence- deleted the wence/fea/cudf-polars-structure branch May 13, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cudf.polars Issues specific to cudf.polars improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants