PyLibcuDF (CUDA 12)

26.4.0 · active · verified Thu Apr 16

pylibcudf-cu12 is the Python binding layer for libcudf, a GPU-accelerated DataFrame library that is part of the NVIDIA RAPIDS ecosystem. It provides high-performance data manipulation primitives, primarily used through the higher-level `cudf` library. As of version 26.4.0, it follows a monthly release cadence, aligned with other RAPIDS components.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create a basic `cudf.DataFrame` and perform a simple element-wise operation, showcasing the primary entry point for using the library.

import cudf
import numpy as np

# Create a cuDF DataFrame from a dictionary
data = {'col1': np.random.rand(10), 'col2': np.arange(10)}
gdf = cudf.DataFrame(data)
print("Original DataFrame:")
print(gdf)

# Perform a simple operation
gdf['col3'] = gdf['col1'] * 2
print("\nDataFrame after operation:")
print(gdf)

view raw JSON →