Skip to content

Instantly share code, notes, and snippets.

@h3ik0th
Created October 6, 2022 15:26
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/c52cbecb8d583026ea7ea81430bffd8b to your computer and use it in GitHub Desktop.
Save h3ik0th/c52cbecb8d583026ea7ea81430bffd8b to your computer and use it in GitHub Desktop.
%%time
# itertuples: large dataframe
dictY = dict()
for row in dfL.itertuples():
res = myfunc2(row)
dictY[row] = list(res)
dfY = pd.DataFrame()
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