立即学习:https://edu.csdn.net/course/play/26990/361121?utm_source=blogtoedu
Excel文件读写:
- 使用read_excel读取, 读取后的结果为dataframe格式
- 读取excel文件和csv文件参数大致一样,但考虑工作表sheet页
- 参数较多, 可以自行控制, 但很多时候使用默认参数
- 读取excel时,注意编码,常用编码格式为utf-8、gbk、gbk2312和gb18030等
- 使用to_excel快速保存为xlsx格式