Re: Re: Untitled

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

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Crimson Armadillo text 1 Year ago.

Reply to "Re: Re: Untitled"

Here you can reply to the paste above