Skip to content

Instantly share code, notes, and snippets.

@h3ik0th
Created October 6, 2022 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h3ik0th/f89d43847e48750ea79052d0dc33a89f to your computer and use it in GitHub Desktop.
Save h3ik0th/f89d43847e48750ea79052d0dc33a89f to your computer and use it in GitHub Desktop.
%%time
# list comprehension: almost as good as vectorization
xyz = [myfunc4(b, c) for b, c in zip(dfS.B, dfS.C)]
dfY = pd.DataFrame(xyz, columns=["x", "y", "z"])
display(dfY.tail())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment