Re: Untitled

From Sharp Duck, 6 Months ago, written in Plain Text, viewed 200 times. This paste is a reply to Untitled from Дмитрий Луконин - view diff
URL http://codebin.org/view/092c1f16 Embed
Download Paste or View Raw
  1. import pandas as pd
  2.  
  3. data = pd.read_csv('/datasets/heart_labeled.csv')
  4.  
  5. # < напишите код здесь >
  6. data['target'] = data[['label_1', 'label_2', 'label_3']].sum(axis=1)>1
  7. for i in range(data.shape[0]):
  8.     if data['target'][i] == True:
  9.         data['target'][i] = 1
  10.     else:
  11.         data['target'][i] = 0
  12.  
  13. print(data.head(5))

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Forensic Owl text 6 Months ago.

Reply to "Re: Untitled"

Here you can reply to the paste above