它允許您在不修改原始資料的情況下新增新列。該函式會返回一個添加了列的新DataFrame。 df_new = df.assign(count_plus_5=df['Count'] ...
確定! 回上一頁