pandas使用(八)--dataframe的行列计算 对dataframe的行进行计算 python复现excel功能 Talk is cheap, show me the code. 对dataframe的行进行计算 #已知dataframe,python内部进行计算时的强制规则:数据类型需一致 # 1. 求和计算 df['求和'] = df.apply(lamda x: x.sum(),axis=1) to be continued~