diff --git a/python/cudf/cudf/core/column/column.py b/python/cudf/cudf/core/column/column.py index 65fcc6791d8..a3a6813908a 100644 --- a/python/cudf/cudf/core/column/column.py +++ b/python/cudf/cudf/core/column/column.py @@ -1122,6 +1122,13 @@ def argsort( ) return sorted_indices + def __array__(self, dtype=None): + raise TypeError( + "Implicit conversion to a host NumPy array via __array__ is not " + "allowed. To explicitly construct a host array, consider using " + ".to_array()" + ) + @property def __cuda_array_interface__(self): raise NotImplementedError(