摘要: 求行的平均值代码:import pandas as pd #导入模块df=pd.read_excel(r'C:\Users\Administrator/Desktop/test/1.xlsx')#文件路径a=lambda x : x.mean(1).round(2) #lambda函数m=a(df. 阅读全文
posted @ 2023-07-31 15:03 往事已成昨天 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 求和,求平均import pandas as pdstudent = pd.read_excel('C:/Users/Administrator/Desktop/1.xlsx')student = student.set_index('ID')temp = student[['Test_1','Te 阅读全文
posted @ 2023-07-31 11:16 往事已成昨天 阅读(34) 评论(0) 推荐(0) 编辑