Skip to content

Instantly share code, notes, and snippets.

@CharlyWargnier
Created February 8, 2020 17:28
Show Gist options
  • Select an option

  • Save CharlyWargnier/9582e90c39063ab614f30784ad8af367 to your computer and use it in GitHub Desktop.

Select an option

Save CharlyWargnier/9582e90c39063ab614f30784ad8af367 to your computer and use it in GitHub Desktop.
df[['remainder','header']] = df["header"].str.split('".*LOCATION=30.-', 1, expand=True)
df['header'] = df['header'].str.replace('\"', '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment