I am trying to read a csv file with numpy and I have the following code
from numpy import genfromtxt
data = genfromtxt(open(\'errerr.csv\', \"r\"), names=Tr
Your dtype
isn't fine. It's specifying '
dtype=None
:
np.genfromtxt(txt,delimiter=',',names=True,dtype=None)
which produces:
array([ ('Strings strings', 'Error', '") Thread Name: Extended Properties:"', 'SunDSrvc.exe', 'C:\\Program Files\\SunDSrvc.exe', '5DAA9377 ', 'Client'),
('Strings strings', 'Error', '") Thread Name: Extended Properties:"', 'SunDSrvc.exe', 'C:\\Program Files\\SunDSrvc.exe', '5DAA9377 ', 'Client'),
('Strings strings', 'Error', '") Thread Name: Extended Properties:"', 'SunDSrvc.exe', 'C:\\Program Files\\SunDSrvc.exe', '5DAA9377 ', 'Client')],
dtype=[('name', 'S15'), ('severity', 'S5'), ('Message', 'S39'), ('AppDomainName', 'S12'), ('ProcessName', 'S29'), ('clientid', 'S9'), ('type', 'S6')])
(I have removed extraneous stuff about delimiters within quotes)