import numpy as np txt = np.loadtxt("Spider.csv",delimiter=',',dtype=str) print(np.char.capitalize(txt).reshape(-1))