python:csvとしてのDataFrame出力(Pandasのto_csv()で使用)

 参照:https  //blog.csdn.net/Jarry_cm/article/details/99633562 [Python] csv \ txt \ xlsxファイルとしてのDataFrame出力

https://blog.csdn.net/toshibahuai/article/details/79034829 パンダのto_csv()使用方法

 

DataFrameをcsvファイルにエクスポート

outputpath = 'result_test.csv'
# outputpath是保存文件路径

df1.to_csv(outputpath,sep=',',index=False,header=True) 
# df1是你想要输出的的DataFrame
# index是否要索引,header是否要列名,True就是需要

 

 

おすすめ

転載: blog.csdn.net/weixin_39450145/article/details/114303367