You may use the following syntax to sum each column and row in Pandas DataFrame: (1) Sum each column: df.sum(axis=0). (2) Sum each row:
確定! 回上一頁