pandas所有列纵向求和,并添加到结尾 dfhe.loc['Row_sum'] = dfhe.apply(lambda x: pd.to_numeric(x, errors='coerce').sum()) pandas