dataframe sum函数
时间: 2023-12-03 14:48:38 浏览: 79
pandas-dataframe
DataFrame的sum函数是用来计算DataFrame对象中的数值列的总和。可以通过指定axis参数来选择沿着行或列方向进行求和,默认情况下axis为0,即按列求和。当axis参数为1时,表示按行求和。sum函数会返回一个Series对象,其中包含了各列的总和。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [dataframe.sum()函数](https://blog.csdn.net/vuvu_an/article/details/78926102)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [【python DateFrame的重要属性和函数】](https://blog.csdn.net/qq_45186086/article/details/125685536)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文