python 将txt 表格转化为excel
import pandas as pd
data = pd.read_table('horseColicTraining.txt')
data.columns=list(range(data.shape[1]))
data.to_excel('data.xls')
import pandas as pd
data = pd.read_table('horseColicTraining.txt')
data.columns=list(range(data.shape[1]))
data.to_excel('data.xls')