Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created March 6, 2024 17:53
Show Gist options
  • Save quantra-go-algo/aca5975b3cc9dfb43c53589c0f3907e4 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/aca5975b3cc9dfb43c53589c0f3907e4 to your computer and use it in GitHub Desktop.
# Import the corresponding library
import cudf
# Create a GPU DataFrame
data = {'A': [1, 2, 3], 'B': [4, 5, 6]}
df = cudf.DataFrame(data)
# Perform data manipulation
df['C'] = df['A'] + df['B']
print(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment