摘要:
import pandas as pd df = pd.DataFrame(np.random.randn(3,4),columns=['a','b','c','d']) k = df.pop("b") df.insert(df.shape[1],"label",k) #将b列移到了最后一列去 df 阅读全文
posted @ 2020-12-06 16:17
qiezi_online
阅读(3126)
评论(0)
推荐(0)
摘要:
import csvdef convert_txt_to_csv(out_file_path, input_file_path, txt_sep): #定义输出路径,输入文件路径,txt的分隔符 with open("./temp.csv", "w", newline = "") as csv_fi 阅读全文
posted @ 2020-12-06 15:51
qiezi_online
阅读(662)
评论(0)
推荐(0)
摘要:
head -n 100 train.txt > 123.txt head -100 train.txt > 123.txt 阅读全文
posted @ 2020-12-06 15:14
qiezi_online
阅读(715)
评论(0)
推荐(0)

浙公网安备 33010602011771号