千万里不及你
我为工作表文件显示的屏幕截图创建了exceldf = pd.read_excel('PythonExport.xlsx',
header=[0,1,2],index_col=[0,1],
)df:x = df.T.swaplevel(0,1).T.stack().stack().reset_index()
x.columns = ['repeat','condition','day','type','length','weight']
x = x.fillna(0)x: