Skip to content

Instantly share code, notes, and snippets.

@nygeog
Created April 25, 2014 14:20
Show Gist options
  • Save nygeog/11291214 to your computer and use it in GitHub Desktop.
Save nygeog/11291214 to your computer and use it in GitHub Desktop.
Pandas slice a column
geoidCalc = df['UID'].str[2:]
df['geoid'] = geoidCalc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment