series to dataframe
时间: 2023-11-18 14:51:35 浏览: 104
Series和DataFrame使用简单入门
将Series转化为DataFrame有几种方法。第一种方法是使用pd.DataFrame()函数,并在columns参数中指定列名。这样可以将Series的值作为DataFrame的一列数据。例如,pd.DataFrame(series, columns=['列名'])。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [20220316 技术点小结:如何将Series转换成Dataframe](https://blog.csdn.net/MinskyYi/article/details/123531301)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Series转Dataframe注意事项](https://blog.csdn.net/i_newbie/article/details/126695587)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文