month_df = pd.read_excel(month,dtype={"营业部代码":str},skiprows=2,index_col=0)
month_df.set_index(dfr["营业部代码"],inplace=True)
pandas 设置字符串为索引,不会转成int
最新推荐文章于 2022-09-17 15:23:34 发布
month_df = pd.read_excel(month,dtype={"营业部代码":str},skiprows=2,index_col=0)
month_df.set_index(dfr["营业部代码"],inplace=True)