cuDF is a GPU-accelerated Python DataFrame library that mirrors the pandas API, enabling data scientists to perform data manipulation and analytics tasks entirely on NVIDIA GPUs. It is a core component of the RAPIDS suite of open-source libraries, designed to significantly speed up data processing for large datasets by leveraging GPU parallelism and memory bandwidth. cuDF is actively developed with frequent releases, typically aligned with the RAPIDS project's release cycle.
pip install cudf-cu12 rmm-cu12 --extra-index-url https://pypi.nvidia.comVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates creating a cuDF DataFrame and performing a basic groupby aggregation, similar to pandas. It also includes a comment illustrating how to enable `cudf.pandas` for zero-code-change GPU acceleration of existing pandas workflows, emphasizing the importance of activating it before `pandas` is imported.
Ensure your environment has `pyarrow>=19` installed. If using conda, update `pyarrow` and `cudf` together.
Refactor code to use alternative cuDF operations, such as element-wise operations, or more efficient `apply` patterns if available. Consider using `map_partitions` with Dask-cuDF for custom row-wise logic across partitions.
Upgrade your NVIDIA CUDA Toolkit installation to version 12.x. Ensure your `cudf-cuXX` package matches your CUDA runtime version.
Consult `nvtext` documentation for recommended replacement APIs for byte pair encoding, or consider alternative text processing methods.
Choose either `cudf.pandas` (by installing it before importing `pandas`) for pandas-like workflows or `import cudf` for explicit cuDF usage. Do not use both in the same execution context unless explicitly managing data conversions between `cudf.DataFrame` and `pandas.DataFrame`.
Explicitly handle missing values using `.fillna()` or `.replace()` if a specific fill value other than `np.nan` is required.