Skip to content

Commit

Permalink
data and null_mask are not properties of plc.Column
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Dec 9, 2024
1 parent 0171d97 commit 24586dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/cudf/cudf/_lib/column.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ cdef class Column:
col.null_mask().obj, exposed=data_ptr_exposed
) if col.null_mask() is not None else None

if hasattr(col.data.obj, "owner"):
if hasattr(col.data().obj, "owner"):
size = col.size()
offset = col.offset()
dtype_itemsize = getattr(dtype, "itemsize", 1)
Expand All @@ -656,8 +656,8 @@ cdef class Column:
mask_ptr = col.null_mask().obj.ptr
data = None
base_size = size + offset
data_owner = col.data.obj.owner
mask_owner = col.null_mask.obj.owner
data_owner = col.data().obj.owner
mask_owner = col.null_mask().obj.owner
base_nbytes = base_size * dtype_itemsize

is_string_column = (col.type().id() == libcudf_types.type_id.STRING)
Expand Down

0 comments on commit 24586dc

Please sign in to comment.