-
Notifications
You must be signed in to change notification settings - Fork 908
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
Support pd.read_pickle
and pd.to_pickle
in cudf.pandas
#16105
Support pd.read_pickle
and pd.to_pickle
in cudf.pandas
#16105
Conversation
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'm including the source for pd.read_pickle
and pd.to_pickle
so that pickle protocol is kept intact.
@@ -937,8 +938,13 @@ def _fast_slow_function_call( | |||
domain="cudf_pandas", | |||
): | |||
slow_args, slow_kwargs = _slow_arg(args), _slow_arg(kwargs) | |||
with disable_module_accelerator(): | |||
result = func(*slow_args, **slow_kwargs) | |||
if args[0].__name__ == "read_pickle": |
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.
result = func(*slow_args, **slow_kwargs)
led to infinite recursion so I had to get the argument needed for read_pickle
. Is there a better way to do this?
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.
Curious what is the part leading to recursion?
If the goal is to always just call pandas' read_pickle
/to_pickle
, it may make sense to manually define these method wrapper in python/cudf/cudf/pandas/_wrappers/pandas.py
.
pd.read_pickle
in cudf.pandas
pd.read_pickle
and pd.to_pickle
in cudf.pandas
b604a54
to
a6375a0
Compare
…support-pandas-pickling
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.
A suggestion for simplification
…support-pandas-pickling
…support-pandas-pickling
/merge |
Description
Closes #15459
Checklist