Created
November 14, 2019 21:22
-
-
Save ggodreau/4f1b6375f8589af3e7560137e6ba4118 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 extract_dept(col): | |
try: | |
return col.split('-')[-1] | |
except: | |
return col |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment