Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location_ = []
- for index, row in all_ads_until_10_Oct.iterrows():
- text = row['Information']
- text_array = text.split()
- if 'Дистанционна' in text_array:
- location_.append('Дистанционна работа')
- elif len(text_array) != 0 :
- matches = re.findall('[А-Яа-яЁё.]+', text)
- location_.append(matches)
- else:
- location_.append(np.nan)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement