Created
February 27, 2019 22:03
-
-
Save hamletbatista/1ba2743340c7c1c3d75fac1f333e3514 to your computer and use it in GitHub Desktop.
This file contains 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
from collections import Counter | |
import re | |
import nltk | |
from nltk.corpus import stopwords | |
nltk.download('stopwords') | |
from urllib.parse import urlparse | |
df["path"]=df.index.map(lambda x: urlparse(x).path) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment