读取数据
import pandas as pd
pd.read_csv('path', sep = '', header = None)
pd.read_table('path', sep = '', header = None)
path:文件路径
sep: 数据的间隔符号
header: 列名的行号,默认为0即第一行是列名,如果没有列名则header = None
写出数据
data = pd.read_csv('E:/file/data01.csv', sep = ',')
data.to_csv('./data_out.csv', sep =' ', index = False, header = False)
index = False 即行标签不输出
header = False 即列标签不输出