1 回答

TA貢獻(xiàn)1773條經(jīng)驗(yàn) 獲得超3個(gè)贊
IIUC:并且列被設(shè)置為兩個(gè)數(shù)據(jù)幀中的您的,那么您可以嘗試以下操作:studentsindex
MergeAttendance2 = MergeAttendance.merge(ThisYearSess, left_index=True, right_index=True, how="outer")
print(MergeAttendance2)
輸出:
OverallAtt201819 OverallAttCurrent OverallSessionsAttendedSoFar
students
5bf3e06e9a892068705d8415 98.670213 93.333333 22400.0
5bf3e06e9a892068705d8416 97.340426 98.360656 24000.0
5bf3e06e9a892068705d8417 98.936170 95.000000 22800.0
5bf3e06e9a892068705d8418 98.936170 97.540984 23800.0
5bf3e06e9a892068705d8419 98.404255 97.540984 23800.0
添加回答
舉報(bào)