Created
November 6, 2019 11:36
-
-
Save chrishop/2d5cb31024b0e423d3efee0bdac5f9c5 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_column_names(columns: str) -> str: | |
return strip_lower(underscore(columns)) | |
def strip_lower(a_str: str) -> str: | |
return a_str.strip().lower() | |
def underscore(a_str: str) -> str: | |
return a_str.replace(" ","_").replace(punctuation,"") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!