pandas: ผสาน (เข้าร่วม) สองเฟรมข้อมูลในหลายคอลัมน์
ฉันพยายามเข้าร่วมสองเฟรมข้อมูลแพนด้าโดยใช้สองคอลัมน์: new_df = pd.merge(A_df, B_df, how='left', left_on='[A_c1,c2]', right_on = '[B_c1,c2]') แต่ได้รับข้อผิดพลาดต่อไปนี้: pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4164)() pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4028)() pandas/src/hashtable_class_helper.pxi in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13166)() pandas/src/hashtable_class_helper.pxi in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13120)() KeyError: '[B_1, c2]' ความคิดใดที่ควรเป็นวิธีที่ถูกต้องในการทำเช่นนี้? ขอบคุณ!