Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created August 25, 2018 18:35
Show Gist options
  • Select an option

  • Save StrikingLoo/87cdb526dbd220907a2cce2edc5f2427 to your computer and use it in GitHub Desktop.

Select an option

Save StrikingLoo/87cdb526dbd220907a2cce2edc5f2427 to your computer and use it in GitHub Desktop.
def f(x):
return (13*x+5)%7
def apply_random_old():
df3['random']= df3['salary'].apply(f)
def apply_random():
dfn['random']= dfn['salary'].apply(f).compute()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment