file_one = pd.read_csv('运动员信息采集01.csv', encoding='gbk') file_two = pd.read_excel('运动员信息采集02.xlsx')
时间: 2024-02-07 09:02:07 浏览: 217
这是两种不同的方式读取数据文件,一种是读取csv文件,一种是读取Excel文件。其中,`pd.read_csv()`函数用于读取csv文件,`pd.read_excel()`函数用于读取Excel文件。这两个函数的参数也略有不同,`pd.read_csv()`函数需要指定编码方式,而`pd.read_excel()`函数需要指定工作表名称或索引。
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![csv](https://img-home.csdnimg.cn/images/20241231044821.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)