Created
July 28, 2020 08:24
-
-
Save kurasaiteja/2add2f80fc4dc0d5dbe3a368f6a834d0 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 dateconv(date): | |
q ="2020-03-22" | |
if date < q: | |
return "Pre-Lockdown" | |
else: | |
return "During-Lockdown" | |
df_india["Lockdown"] = df_india["date"].apply(dateconv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment