Skip to content

Instantly share code, notes, and snippets.

@CharlyWargnier
Created February 8, 2020 17:10
Show Gist options
  • Save CharlyWargnier/d98bcfc8c7c86ca979cc77ca680dcd7a to your computer and use it in GitHub Desktop.
Save CharlyWargnier/d98bcfc8c7c86ca979cc77ca680dcd7a to your computer and use it in GitHub Desktop.
df[['Method','header']] = df["header"].str.split(" ", 1, expand=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment