cuDF - GPU Dataframe (C++)

26.4.0 · active · verified Thu Apr 16

`libcudf-cu12` is the underlying C++ library for cuDF, a GPU-accelerated DataFrame library for Python, part of the NVIDIA RAPIDS ecosystem. It enables pandas-like data manipulation directly on the GPU, leveraging CUDA for high performance. This PyPI meta-package primarily serves as a runtime dependency that transitively pulls in the Python `cudf-cu12` package. cuDF follows a rapid monthly release cadence (YYYY.MM.patch), consistently introducing new features and breaking changes. The current stable version is `26.4.0`.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create a basic cuDF DataFrame and perform a simple aggregation, showcasing its pandas-like API for GPU data manipulation.

import cudf
import numpy as np

# Create a cuDF DataFrame directly on the GPU
data = {
    'col1': np.random.rand(10),
    'col2': np.random.randint(0, 100, 10)
}
gdf = cudf.DataFrame(data)

print("cuDF DataFrame head:")
print(gdf.head())
print(f"\nMean of col1: {gdf['col1'].mean().item()}")

view raw JSON →