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

FIX-#6107: Allow pass through of tz_convert and tz_localize to QC if possible #6137

Merged
merged 4 commits into from May 18, 2023

Conversation

RehanSD
Copy link
Collaborator

@RehanSD RehanSD commented May 15, 2023

What do these changes do?

  • first commit message and PR title follow format outlined here

    NOTE: If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

  • passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
  • passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
  • signed commit with git commit -s
  • Resolves REFACTOR: pass tz_convert and tz_localize directly to query compiler #6107 ?
  • tests added and passing
  • module layout described at docs/development/architecture.rst is up-to-date

…calize` to QC if possible

Signed-off-by: Rehan Durrani <rehan@ponder.io>
@RehanSD RehanSD requested a review from a team as a code owner May 15, 2023 23:22
Signed-off-by: Rehan Durrani <rehan@ponder.io>
Copy link
Collaborator

@vnlitvinov vnlitvinov left a comment

Choose a reason for hiding this comment

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

Do we have tests to tz_convert and tz_localize?

if level is not None:
new_labels = (
pandas.Series(index=self.axes[axis]).tz_convert(tz, level=level).index
if hasattr(self._query_compiler, "tz_convert"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

this doesn't feel right... I would propose to require this method but default-to-pandas in normal implementation.
This way - allowing different QCs to have or not to have a method - opens a can of worms IMHO I would rather not let be opened...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense - let me wait on #6145 for this PR then, since we'll need the base's _create_or_update_inplace for these

Signed-off-by: Rehan Durrani <rehan@ponder.io>
Signed-off-by: Rehan Durrani <rehan@ponder.io>
Copy link
Collaborator

@vnlitvinov vnlitvinov left a comment

Choose a reason for hiding this comment

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

LGTM!

@vnlitvinov vnlitvinov merged commit 2cd9fe7 into modin-project:master May 18, 2023
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REFACTOR: pass tz_convert and tz_localize directly to query compiler
2 participants