import numpy as np narray = np.loadtxt('Spider.csv',delimiter=',',dtype=str) res = np.char.capitalize(narray) print(res.flatten(order='C'))