Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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