pd.read_csv(path, index_col=0)
或
pd.to_csv(path, index=False)
pd.read_csv('/Downloads/2020-3-14-CB.csv',dtype = object)
pd.read_csv('/Downloads/2020-3-14-CB.csv',converters = {'正股代码':str})
df['正股代码'] = df['正股代码'].astype('str') #将原本的int数据类型转换为文本
df['正股代码'] = df['正股代码'].str.zfill(6) #用的时候必须加上.str前缀
data = pd.read_csv('../data/moive_metadata.csv', dtype={'duration': int})
df_data.to_csv('data.csv', mode='a', header=False, index=None)
df = pd.read_csv("apple.csv", parse_dates =["date"], index_col ="date")