Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
251 B
1
Indexable
Never
#Every observation gets appended into the list once it is read
featuresAll=[]
features=iris.data[: ,[0,1,2,3]]
for observation in features:
   featuresAll.append([observation[0]+observation[1]+observation[2]+observation[3]])
   print(featuresAll)
Leave a Comment