pandas 5 导入导出 读取保存 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
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