Skip to content

Instantly share code, notes, and snippets.

@brandon-b-miller
Created January 14, 2021 20:35
Show Gist options
  • Save brandon-b-miller/fd42a4806ed68a97763c209d9cc7671f to your computer and use it in GitHub Desktop.
Save brandon-b-miller/fd42a4806ed68a97763c209d9cc7671f to your computer and use it in GitHub Desktop.
import cudf
sr1 = cudf.Series([1,2,3])
sr2 = cudf.Series([2,3,4])
val = cudf.Scalar(1) # construct a cuDF scalar
result_1 = sr1 + val
result_2 = sr2 – val
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment