1. 默认的pandas不能读取excel。需要安装xlrd, xlwt才能支持excel的读写 

1 pip install xlrd #添加读取excel功能
2 pip install xlwt #添加写入excel功能

2.pandas基本数据结构是Series 和 DataFrame

Series序列,类似与一维数组;

Data Frame则相当于一张二维表格,类似于二维数组,它的每一列都是一个Series,每个series都有一个对应的index,用来标记不同的元素。index的内容可以是数字,字幕,中文等。

Data Frame相当于多个带有同样的index多series的组合。

相关文章:

  • 2022-12-23
  • 2021-10-17
  • 2021-07-18
  • 2021-08-22
  • 2021-11-10
  • 2021-06-21
  • 2021-12-28
  • 2021-10-17
猜你喜欢
  • 2021-12-28
  • 2022-01-16
相关资源
相似解决方案