y = pd.read_csv('.\data\y.txt', sep='\t', header=None)
y.columns = ['y%s'%i for i in range(1, y.shape[1]+1)]
y.txt
The data is like this, there is a tab character in the middle \t
, if an error is reported, then you may need to add an escape character before the pathr