用python淘汰excel篇:横向求一行数据的sum,min,max
@@
df = pd.read_excel("C:/Python39/jinsai/dataset/1.xlsx")
aa = pd.concat([df,df[['一月销量','二月销量','三月销量']].agg({'sum','sum','count','count','min','min','max','max'},axis = 1)],axis = 1)
print(aa)
@@
df = pd.read_excel("C:/Python39/jinsai/dataset/1.xlsx")
aa = pd.concat([df,df[['一月销量','二月销量','三月销量']].agg({'sum','sum','count','count','min','min','max','max'},axis = 1)],axis = 1)
print(aa)