练习1
- 将 学生成绩表 与 选修成绩表 进行水平的拼接
import pandas as pd
import numpy as np
score_stu = pd.read_excel("学生成绩表.xlsx",index_col = 0)
xuan_score_stu = pd.read_excel("选修成绩表.xlsx",index_col = 0)
pd.concat((score_stu,xuan_score_stu),axis = 1)
练习2
- 想在一张表中直观的了解每一位同学对应的老师
stu_group = pd.read_excel("学生分配表.xlsx")
tea_group = pd.read_excel("老师排班表.xlsx")
pd.merge(tea_group,stu_group)