You can specify a new column. You also need to compute the mean along the rows, so use axis=1 . df['mean'] = df.mean(axis=1) >>> df Y1961 ...
確定! 回上一頁