Created
July 27, 2020 06:50
-
-
Save naenumtou/060d81d4684be6a0e5a2f712eb416190 to your computer and use it in GitHub Desktop.
This file contains 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 checking(df): | |
if df['test'] < 50: | |
flag = 1 | |
else: | |
flag = 0 | |
return flag | |
df['apply_1'] = df.apply(checking, axis = 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment