-
Notifications
You must be signed in to change notification settings - Fork 116
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-1852934: Add support for DataFrame.map method #2754
Conversation
d365518
to
710f233
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.
LGTM. Thanks!
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.
extraneous comment it seems
653310a
to
001bf50
Compare
fec6641
to
1cdcf66
Compare
1cdcf66
to
887cb80
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.
Cool. LGTM
def _map(self, func, na_action: str | None = None, **kwargs) -> DataFrame: | ||
pass # pragma: no cover | ||
def _map(self, func: PythonFuncType, na_action: str | None = None, **kwargs): | ||
# TODO: SNOW-1063346: Modin upgrade - modin.pandas.DataFrame functions |
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.
this ticket SNOW-1063346 (https://snowflakecomputing.atlassian.net/browse/SNOW-1063346) is done. what's the TODO here?
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.
I think this line of comment is copied over and it is no longer valid since it is done
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. @sfc-gh-joshi might have insights into what work is left to remove these TODOs?
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.
@sfc-gh-dpetersohn originally left these comments in the code to identify which functions have differing implementations from the upstream modin versions, but I ended up using the ticket to track moving these methods into dataframe_overrides.py
from the old snowflake/snowpark/modin/pandas/dataframe.py
file. We can remove the TODO when we remove the override definition (i.e. we match the upstream modin implementation), though this might not be possible or desirable in all cases.
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1852934
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
In pandas 2.1.0 DataFrame.applymap was renamed to DataFrame.map. We already have support for DataFrame.applymap, added redirect to support DataFrame.map as well.