You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: this does take about 5 mins to run through the ___ rows
Just ran through the notebook! Though I'd throw in this suggestion using NLTK to filter the feature place names without mutating the original name and adding in the other words like 'valentine'
Aside: I've been watching your work in maptimelex! Awesome stuff! Keep maptime alive!
from nltk import Text
from nltk.tokenize import word_tokenize
def filter_words(row):
match_words = ['Love', 'Valentine', 'Heart']
feature_name_text = Text(word_tokenize(row['FEATURE_NAME']))
for word in match_words:
if feature_name_text.count(word) > 0:
return True
return False
love_df = data_in[data_in.apply(filter_words, axis=1)]]
The text was updated successfully, but these errors were encountered:
Disclaimer: this does take about 5 mins to run through the ___ rows
Just ran through the notebook! Though I'd throw in this suggestion using NLTK to filter the feature place names without mutating the original name and adding in the other words like 'valentine'
Aside: I've been watching your work in maptimelex! Awesome stuff! Keep maptime alive!
The text was updated successfully, but these errors were encountered: