47. 分析師想將 customers 表中的 Region 欄位加入到 df 交易紀錄中,且「只保留那些在 customers 表中有對應資料的交易紀錄」。下列哪一種合併方式最正確?
(A) pd.concat([df, customers], axis=1);
(B) pd.merge(df, customers, on='CustomerID', how='outer');
(C) pd.merge(df, customers, on='CustomerID', how='inner');
(D) df.join(customers, on='CustomerID')
答案:登入後查看
統計: 尚無統計資料
統計: 尚無統計資料