def reader(f):
    d = read_csv(f, index_col=0, header=None, axis=1)
d.columns = list(range(d.shape[1]))
return d
Pandas: import multiple csv files into dataframe using a loop and hierarchical indexing