pd.read_csv(header)
时间: 2023-10-22 10:28:33 浏览: 102
pd.read_csv(header)是pandas库中的一个函数,用于读取CSV文件并返回一个DataFrame对象。在函数参数header中,可以指定文件中用作列名的行号或行号列表。例如,header=None表示没有列名,而header=表示将第二行作为列名。可以使用这个参数来自定义列名或跳过文件中的某些行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [pandas.read_csv() 参数 header整理](https://blog.csdn.net/weixin_41300650/article/details/102584758)[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%"]
- *3* [【python】pandas读取csv格式数据时header参数设置](https://blog.csdn.net/sinat_32872729/article/details/93025161)[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 ]
阅读全文