to slice columns in a tuple present in a numpy array
问题 I have imported a text file into a numpy array as shown below. data=np.genfromtxt(f,dtype=None,delimiter=',',names=None) where f contains the path of my csv file now data contains the following. array([(534, 116.48482, 39.89821, '2008-02-03 00:00:49'), (650, 116.4978, 39.98097, '2008-02-03 00:00:02'), (675, 116.31873, 39.9374, '2008-02-03 00:00:04'), (715, 116.70027, 40.16545, '2008-02-03 00:00:45'), (2884, 116.67727, 39.88201, '2008-02-03 00:00:48'), (3799, 116.29838, 40.04533, '2008-02-03