diff --git a/python/cudf/cudf/_lib/column.pyx b/python/cudf/cudf/_lib/column.pyx index d75ce0df156..40e12d426b6 100644 --- a/python/cudf/cudf/_lib/column.pyx +++ b/python/cudf/cudf/_lib/column.pyx @@ -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) @@ -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)