Untitled

From Дмитрий Луконин, 5 Months ago, written in Plain Text, viewed 176 times. This paste will check out in 1 Second.
URL http://codebin.org/view/14e39779 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 Untitled rss

Title Name Language When
Re: Untitled Sharp Duck text 4 Months ago.

Reply to "Untitled"

Here you can reply to the paste above