Happy清子 发表于 2019-12-4 22:43:24

pandas读取,写入txt文件


[*]from pandas import DataFrame


[*]

import pandas as pd


[*]




[*]




[*]

da = pd.read_table('a.txt',header = None,delim_whitespace=True)


[*]




[*]
[*]M = da['F'].value_counts()


[*]




[*]

M.to_csv('CS.txt')





Happy清子 发表于 2019-12-4 22:43:53

https://blog.csdn.net/weixin_42199636/article/details/82690782
页: [1]
查看完整版本: pandas读取,写入txt文件