Ledger Nano X - The secure hardware wallet


a guest Mar 30th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def sorting_lemmas(row):
  2.     lemmas_type = row['lemmas_type']
  3.     if ('жилье' in lemmas_type) or ('недвижимость' in lemmas_type):
  4.         return 'недвижимость'
  5.     if 'автомобиль' in lemmas_type:
  6.         return 'автомобиль'
  7.     if 'свадьба' in lemmas_type:
  8.         return 'свадьба'
  9.     else:
  10.         return 'образование'
  12. data['target_credit'] = data['lemmas_type'].apply(sorting_lemmas)
  13. print(data.head(5))
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