pd.DataFrame(columns=
时间: 2023-11-03 14:55:06 浏览: 90
python pandas.DataFrame.loc函数使用详解
pd.DataFrame(columns= 是用来创建一个空的DataFrame,并指定列名的。你可以在括号中输入列名,以列表的形式传递给columns参数。例如,pd.DataFrame(columns=['col1', 'col2', 'col3'])可以创建一个空的DataFrame,其中包含三列,列名分别为col1、col2、col3。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [pd.DataFrame()用法简单记录](https://blog.csdn.net/Miss_leading/article/details/115864074)[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* *3* [pd.DataFrame()函数解析](https://blog.csdn.net/devil_son1234/article/details/105529222)[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 ]
阅读全文