目录
1 Pandas文件读取和写入
1.1 文件读取(csv、txt、xls/xlsx)
# 读取 csv 文件
pandas.read_csv( )
# 读取 txt 文件
pandas.read_table( )
# 读取 xls/xlsx 文件
pandas.read_excel( ) # 需要安装openpyxl
1.2 文件写入(csv、xls/xlsx)
# 写入 csv 文件
pandas.to_csv( )
# 写入 xls/xlsx 文件
pandas.to_excel( )