Created
October 6, 2022 15:24
-
-
Save h3ik0th/c0df5f306e1d56d95d3eb30b3698e2ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%time | |
# runner-up: dictionary comprehension | |
xyz = {i: myfunc4(b, c) for i, b, c in zip(dfS.index, dfS.B, dfS.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