Skip to content

Instantly share code, notes, and snippets.

@h3ik0th
Created October 6, 2022 15:19
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/fc101bf78d0463bed4654bc559a856a2 to your computer and use it in GitHub Desktop.
Save h3ik0th/fc101bf78d0463bed4654bc559a856a2 to your computer and use it in GitHub Desktop.
%%time
# apply row-wise: iteration crime
def myfunc3(row):
return pd.Series(myfunc2(row))
dfY = pd.DataFrame()
dfY[["x", "y", "z"]] = dfS.apply(myfunc3, axis=1)
display(dfY.tail())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment