Closed honno closed 1 year ago
This issue has been labeled inactive-30d
due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d
if there is no activity in the next 60 days.
This looks to be fixed, so closing :slightly_smiling_face:
>>> df = cudf.DataFrame({"foo": [True]})
>>> interchange_df = df.__dataframe__()
>>> interchange_col = interchange_df.get_column_by_name("foo")
>>> interchange_buf = interchange_col.get_buffers()["data"][0]
>>> interchange_buf
_CuDFBuffer({'bufsize': 1, 'ptr': 140494990475776, 'device': 'CUDA'}
One can't repr an interchange protocol boolean buffer
as
_CuDFBuffer.__repr__()
always uses__dlpack__()
(and__dlpack_device__()
), which won't work for all dtypes.https://github.com/rapidsai/cudf/blob/edc5062bdcc3e12755603b0ad07a4d271fe95261/python/cudf/cudf/core/df_protocol.py#L113-L122