Jared Tian's Hall logo
  • About 
  • Publications 
  • Bluesky   
  1.   Publications
  1. Home
  2. Publications
  3. cudf.pandas

cudf.pandas

Posted on January 3, 2025 • 1 min read • 75 words
Share via

Test the code block feature with Python code.

cudf.pandas
Photo by Jared Tian

cuDF pandas accelerator mode (cudf.pandas) is built on cuDF and accelerates pandas code on the GPU. It supports 100% of the Pandas API, using the GPU for supported operations, and automatically falling back to pandas for other operations.

%load_ext cudf.pandas
# pandas API is now GPU accelerated

import pandas as pd

df = pd.read_csv("filepath")  # uses the GPU!
df.groupby("col").mean()  # uses the GPU!
df.rolling(window=3).sum()  # uses the GPU!
df.apply(set, axis=1)  # uses the CPU (fallback)
 Boltzmann Equation
Monge-Ampère Equation 
© 2025 Jared Tian. | Powered by Hinode  .
Jared Tian's Hall
Code copied to clipboard