Skip to content

Instantly share code, notes, and snippets.

@mchirico
Created March 28, 2020 15:53
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 mchirico/474676c6b17b6010262fa2d2bae4583e to your computer and use it in GitHub Desktop.
Save mchirico/474676c6b17b6010262fa2d2bae4583e to your computer and use it in GitHub Desktop.
def getID(x):
idX0 = Function2id.get(x[0],-1)
return idX0
d['FunID']=d[['Function']].apply(getID, axis=1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment