One - One Code All

Blog Content

pandas读取csv文件使用第一列作为索引index_col=0

Python 统计学-科学计算   2013-09-23 10:15:41

pandas读取csv文件使用第一列作为索引index_col=0


import pandas as pd

data = pd.read_csv(csv_path, index_col=0)



上一篇:pandas中dataframe的查询方法([], loc, iloc, at, iat, ix)
下一篇:python中pandas的dataframe和numpy的ndarray转换为矩阵

The minute you think of giving up, think of the reason why you held on so long.