Skip to content

Instantly share code, notes, and snippets.

@franklinokech
Last active May 27, 2020 10:40
Show Gist options
  • Save franklinokech/e3597deb6b2539df3d5d9dd862fa7a0a to your computer and use it in GitHub Desktop.
Save franklinokech/e3597deb6b2539df3d5d9dd862fa7a0a to your computer and use it in GitHub Desktop.
remove trailing and leading spaces in column names
[x.strip() for x in df.columns]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment