SHARE
TWEET

Untitled

a guest Jan 24th, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data['locality_name'] = data['locality_name'].apply(lambda x: x.replace('ё', 'е'))
  2.  
  3. from pymystem3 import Mystem
  4. m = Mystem()
  5.  
  6. name_unique = data['locality_name'].unique()
  7. name_unique = ' '.join(name_unique)
  8. lemmas_name = m.lemmatize(name_unique)  
  9. from collections import Counter
  10. print(Counter(lemmas_name))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top