How to print only the first column of a dataset with numpy?
My code:
import numpy as np
data = np.genfromtxt("iris.data",delimiter = ",",usecols=(0,1,2,3))
print(data)
My dataset (part of it):
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.0,1.4,0...
asked by
30.04.2018 / 14:43