pandas 保存为xls时最大列为256,改为保存csv格式可避免该限制。
解决方法:pd.DataFrame(in_shp_pre).to_csv('各区站点\\' + file[14:17] + '.csv')
ValueError: column index (256) not an int in range(256)
最新推荐文章于 2024-06-28 15:45:30 发布
pandas 保存为xls时最大列为256,改为保存csv格式可避免该限制。
解决方法:pd.DataFrame(in_shp_pre).to_csv('各区站点\\' + file[14:17] + '.csv')