-
Notifications
You must be signed in to change notification settings - Fork 108
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
SNOW-1677892, SNOW-1677897: Add support for DataFrame.tz_localize and Series.tz_localize #2398
Conversation
6e17477
to
875581f
Compare
… Series.tz_localize
875581f
to
7eb392b
Compare
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.
Left some small suggestions/typo nits, but LGTM otherwise!
src/snowflake/snowpark/modin/plugin/compiler/snowflake_query_compiler.py
Outdated
Show resolved
Hide resolved
src/snowflake/snowpark/modin/plugin/compiler/snowflake_query_compiler.py
Outdated
Show resolved
Hide resolved
@@ -483,7 +483,8 @@ Methods | |||
+-----------------------------+---------------------------------+----------------------------------+----------------------------------------------------+ | |||
| ``tz_convert`` | N | | | | |||
+-----------------------------+---------------------------------+----------------------------------+----------------------------------------------------+ | |||
| ``tz_localize`` | N | | | | |||
| ``tz_localize`` | P | ``axis``, ``level``, ``copy``, | | | |||
| | | ``ambiguous``, ``nonexistent`` | | |
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.
qq: how did we determine what parameters are going to be skipped (not implemented)? what's the process / criteria?
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.
Good question. Initially, we want to make sure we are supporting all the default values (for parameters that do have default values). The parameter tz
here for instance does not have a default value, so it has to be fully supported.
We can later add more parameter coverage, which usually happens based on customer requests. The rationale is that default values are typically the most commonly used by users.
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.
Looks good
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1677892, SNOW-1677897
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Add support for DataFrame.tz_localize and Series.tz_localize.