pandas读取文件夹中的csv
时间: 2023-10-15 18:23:17 浏览: 102
在Pandas中,你可以使用read_csv函数来读取文件夹中的CSV文件。这里有一个示例代码:da = pd.read_csv(U"C:/Python/stock data/*.csv")。这个代码会读取指定文件夹(C:/Python/stock data/)下的所有CSV文件并存储在名为da的变量中。你可以根据自己的文件夹路径进行修改。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [pandas读取csv文件提示不存在的解决方法及原因分析](https://download.csdn.net/download/weixin_38666785/13737198)[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: 33.333333333333336%"]
- *2* [Pandas—CSV文件读入和处理](https://blog.csdn.net/hei653779919/article/details/106885286)[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: 33.333333333333336%"]
- *3* [Python 之 Pandas 文件操作和读取 CSV 参数详解](https://blog.csdn.net/weixin_45891612/article/details/129211886)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文