Skip to content

Commit

Permalink
Minimal fix for categoricals
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed May 30, 2024
1 parent 9f0c30b commit 1859149
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/cudf/cudf/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,13 @@ def from_arrow(cls, data: pa.Table) -> Self:
# so handling indices and dictionary as two different columns.
# This needs be removed once we have hooked libcudf dictionary32
# with categorical.
if any(
isinstance(x.type, pa.DictionaryType)
and isinstance(x, pa.ChunkedArray)
for x in data
):
data = data.combine_chunks()

dict_indices = {}
dict_dictionaries = {}
dict_ordered = {}
Expand Down

0 comments on commit 1859149

Please sign in to comment.