Skip to content

Instantly share code, notes, and snippets.

@jacobSingh
Created December 3, 2016 17:19
Show Gist options
  • Save jacobSingh/af05b9822417757809217ac75261f82f to your computer and use it in GitHub Desktop.
Save jacobSingh/af05b9822417757809217ac75261f82f to your computer and use it in GitHub Desktop.
i=1
def wtf(arg):
global i
print("ran {} times".format(i))
i = i+1
# return
return pd.Series([0,0,1490,1510])
print(abg1.matches.shape)
abg1.matches.apply(wtf, axis=1)
exit()
OUTPUT:
(1, 12)
ran 1 times
ran 2 times
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment