I wanted to ask if anyone knows how to use the multilevel index to stack several data frames into a single one instead of a list of data frames like the one I am doing. Thanks
import glob
import pandas as pd
glist=glob.glob("./path/*.csv")
D=[]
for file in glist:
X=pd.read_csv(file,names=['name1','name2','name3'],index_col = 0, header=0)
D.append(X)