Created
October 6, 2022 15:09
-
-
Save h3ik0th/8ad8661f59ce2a9c2c1de5caa2f68243 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 | |
# iterrows: iteration felony | |
dictY = dict() | |
for i, row in dfS.iterrows(): | |
res = myfunc2(row) | |
dictY[row.name] = list(res) | |
dfY = pd.DataFrame.from_dict(dictY).T | |
dfY.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