1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > python读取dat文件并保存为Excel格式

python读取dat文件并保存为Excel格式

时间:2023-11-22 02:59:21

相关推荐

python读取dat文件并保存为Excel格式

python读取dat文件并保存为Excel格式:

import pandas as pddf = pd.read_csv('file path/file.dat',sep=' ',header=0,names=["N1", "N2", "N3"])df.to_excel('save path /filename.xlsx', index = False)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。