Skip to content

Instantly share code, notes, and snippets.

@chrishop
Created November 6, 2019 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrishop/2d5cb31024b0e423d3efee0bdac5f9c5 to your computer and use it in GitHub Desktop.
Save chrishop/2d5cb31024b0e423d3efee0bdac5f9c5 to your computer and use it in GitHub Desktop.
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,"")
@Hasnep
Copy link

Hasnep commented Nov 6, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment