pandas 5 导入导出 读取保存 I/O API

官网The pandas I/O API

  • pickle格式是python自带的
from __future__ import print_function
import pandas as pd

data = pd.read_csv('student.csv')  # 读取数据 read from
print(data)
data.to_pickle('student.pickle')   # 保存数据 save to

END

posted @ 2019-02-26 14:55  YangZhaonan  阅读(224)  评论(0编辑  收藏  举报