Skip to content

Commit

Permalink
handle ColumnAccessor inputs in dataframe constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Feb 7, 2022
1 parent 2e458b9 commit ded9906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ def __init__(
for k in columns
}
)
elif isinstance(data, ColumnAccessor):
result = self._from_data(data, index, columns)
self._data = result._data
self._index = result._index
elif hasattr(data, "__cuda_array_interface__"):
arr_interface = data.__cuda_array_interface__

Expand Down

0 comments on commit ded9906

Please sign in to comment.