-
-
Save arunm8489/904b8d81ba46b62954125bf7787372d5 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 clean_pro(col): | |
col = col.str.replace('The', '') | |
col = col.str.replace(' ','') | |
col = col.str.replace('&','_') | |
col = col.str.replace(',','_') | |
col = col.str.lower() | |
return col | |
data['project_subject_subcategories'] = clean_pro(data['project_subject_subcategories']) | |
data['project_subject_categories'] = clean_pro(data['project_subject_categories']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment