Created
August 25, 2018 18:35
-
-
Save StrikingLoo/87cdb526dbd220907a2cce2edc5f2427 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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