Re: Re: Re: Re: 21 задание

From Jittery Macaw, 10 Months ago, written in Plain Text, viewed 283 times. This paste is a reply to Re: Re: Re: 21 задание from Валерий Гондусов - view diff
URL http://codebin.org/view/070c8832 Embed
Download Paste or View Raw
  1. def categorize_purpose(row):
  2.     if 'автомоб' in row:
  3.         return 'операции с автомобилем'
  4.    
  5.     if 'недвиж' or 'жиль' in row:
  6.         return 'операции с недвижимостью'
  7.    
  8.     if 'свадьб' in row:
  9.         return 'проведение свадьбы'
  10.    
  11.     if 'образов' in row:
  12.         return 'получение образования'
  13.  
  14. data['purpose_category'] = data['purpose'].apply(categorize_purpose)

Replies to Re: Re: Re: Re: 21 задание rss

Title Name Language When
Re: Re: Re: Re: Re: 21 задание Voluminous Mousedeer text 10 Months ago.

Reply to "Re: Re: Re: Re: 21 задание"

Here you can reply to the paste above