Skip to content

Instantly share code, notes, and snippets.

@h3ik0th
Created October 6, 2022 15:31
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/724181a7a96790b3be431f34ba8950c3 to your computer and use it in GitHub Desktop.
Save h3ik0th/724181a7a96790b3be431f34ba8950c3 to your computer and use it in GitHub Desktop.
%%time
# dictionary comprehension
xyz = {i: myfunc4(b, c) for i, b, c in zip(dfL.index, dfL.B, dfL.C)}
dfY = pd.DataFrame.from_dict(xyz, orient="index", 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