fd = open('results2.csv', 'r')
d = np.loadtxt(fd, delimiter=',', dtype={'names': ('col1', 'col2', 'col3',
    'col4', 'col5', 'col6'), 'formats': ('float', 'S4', 'i4', 'i4', 'i4',
    'i4')})
fd.close()
Python equivalent of Matlab textscan