Skip to content

Commit

Permalink
BUG: Fix no build_categorical_column error of GPU read_parquet (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
hucorz authored Dec 5, 2024
1 parent 183734a commit dfcbf96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
pip install --upgrade --upgrade-strategy only-if-needed --no-cache-dir ".[doc]"
else
pip install -e "git+https://github.com/xorbitsai/xoscar.git@main#subdirectory=python&egg=xoscar"
pip install "xoscar<=0.4.1"
pip install -U numpy scipy cython pyftpdlib coverage flaky numexpr
if [[ "$MODULE" == "xorbits/pandas" ]]; then
Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
if: ${{ matrix.module == 'gpu' }}
run: |
source activate ${{ env.CONDA_ENV }}
pip install --extra-index-url=https://pypi.nvidia.com cudf-cu12==24.8.*
pip install --extra-index-url=https://pypi.nvidia.com cudf-cu12==24.10.*
pip install ucxx-cu12 cython "numpy>=1.14.0,<2.0.0" cloudpickle scikit-learn \
pyyaml psutil tornado sqlalchemy defusedxml tqdm uvloop coverage \
pytest pytest-cov pytest-timeout pytest-forked pytest-asyncio pytest-mock
Expand Down
1 change: 1 addition & 0 deletions doc/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ an older version of pandas, you should either upgrade your pandas or downgrade X
======= =================== ======== ========= ========== =========== ===========
Xorbits Python `NumPy`_ `pandas`_ `xgboost`_ `lightgbm`_ `datasets`_
======= =================== ======== ========= ========== =========== ===========
0.8.1 3.9,3.10,3.11,3.12 2.1.3 2.2.3 2.1.3 4.5.0 3.1.0
0.8.0 3.9,3.10,3.11,3.12 2.1.3 2.2.3 2.1.2 4.5.0 3.1.0
0.7.4 3.9,3.10,3.11 1.26.4 2.2.3 2.1.1 4.5.0 3.0.1
======= =================== ======== ========= ========== =========== ===========
Expand Down
8 changes: 4 additions & 4 deletions python/xorbits/_mars/dataframe/datasource/read_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ def read_partitioned_to_cudf(
codes = cudf.core.column.as_column(
dictionary.index(value), length=len(raw_df)
)
raw_df[col] = cudf.core.column.build_categorical_column(
categories=dictionary,
codes=codes,
raw_df[col] = cudf.core.column.CategoricalColumn(
data=None,
dtype=cudf.CategoricalDtype(categories=dictionary, ordered=False),
size=codes.size,
offset=codes.offset,
ordered=False,
children=(codes,),
)
return raw_df

Expand Down

0 comments on commit dfcbf96

Please sign in to comment.