모양이 (761) 인 numpy의 1 차원 배열이 있고 각 항목은 요소가 독립적으로 액세스 할 수없는 10 개의 튜플입니다. DTYPE는numpy의 1 차원에서 2 차원 배열
array1.dtype
dtype([('Name', '|S58'), ('Category', '|S32'), ('HQLocation', '|S34'),
('YearFounded', '<i8'), ('Latitude', '<f8'), ('Longitude', '<f8'),
('TotalFundingAmount', '<i8'), ('LastFundingAmount', '<i8'),
('Investors', '<i8'), ('NGrams', '|S98')])
예시 행 배열 1은 [578]
('"FoxyP2, Inc."', 'Education', '"Cuajimalpa, Mexico"', 2006, 19.3547,
-99.3001, 55317213, 42999977, 3,
'english;learning;reinvent;experience;english learning')
I는 그 형상 인 2 차원 배열로 만들려고 (761 인 , 10).
이 질문에 대한 대답은 다음과 같습니다. http://stackoverflow.com/questions/9534408/numpy-genfromtxt -produces-array-of-what-like-like-tuples-not-a-2d-arraywhy – Parsa