Re: Untitled

From Colorant Zebra, 11 Months ago, written in Plain Text, viewed 322 times. This paste is a reply to Untitled from Obese Leech - view diff
URL http://codebin.org/view/661f1aaf Embed
Download Paste or View Raw
  1. def categorize_purpose(row):
  2.    
  3.     if row['purpose'] == 'приобретение автомобиля':            
  4.         return 'операции с автомобилем'
  5.     if row['purpose'] == 'покупка недвижимости':
  6.         return 'операции с недвижимостью'
  7.     if row['purpose'] == 'сыграть свадьбу':
  8.         return 'проведение свадьбы'
  9.     if row['purpose'] == 'получение образования':
  10.         return 'получение образования'
  11.    data['purpose_category'] = data.apply(categorize_purpose, axis=1)

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Sloppy Parrot text 11 Months ago.

Reply to "Re: Untitled"

Here you can reply to the paste above