-
Notifications
You must be signed in to change notification settings - Fork 924
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
[BUG] DatetimeArray
is not writable in cudf.pandas
#17743
Comments
It appears pyarrow is making this not writeable e.g. In [4]: import pyarrow as pa
In [5]: import datetime
In [7]: pa.array([datetime.datetime(2020, 1, 1)]).to_pandas().array._ndarray.flags
Out[7]:
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : False
WRITEABLE : False
ALIGNED : True
WRITEBACKIFCOPY : False |
Opened apache/arrow#45341 to track this |
Though the problem is in pyarrow, the issue only shows up with usage of |
But I think we can call |
OK I realized we can use |
So our options are
If we take a step back for a second and forget about cudf.pandas, how do we expect this to behave if we did this explicitly in cudf? If we created a |
Describe the bug
When a
DatetimeArray
is created incudf.pandas
, it appears to be that the internal ndarray is not writable.Steps/Code to reproduce bug
output:
The text was updated successfully, but these errors were encountered: