Created
February 8, 2020 17:25
-
-
Save CharlyWargnier/2a301cd57539bffbb1b138b000d45ba5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| df[['url','header']] = df["header"].str.split(" ", 1, expand=True) | |
| # Remove slash (/) at the start of each URL | |
| df['url'] = df['url'].str.replace('/','',n=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment