pandas的学习5-导入导出数据
import pandas as pd ''' pandas可以读取与存取的资料格式有很多种,像csv、excel、json、html与pickle等…, 详细请看官方说明文件 ''' # read from data = pd.read_csv('5.student.csv') print(data) # save to data.to_pickle('student.pickle')
出处:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-5-pd-to/