摘要:
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 阅读全文
摘要:
import csvdef convert_txt_to_csv(out_file_path, input_file_path, txt_sep): #定义输出路径,输入文件路径,txt的分隔符 with open("./temp.csv", "w", newline = "") as csv_fi 阅读全文
摘要:
head -n 100 train.txt > 123.txt head -100 train.txt > 123.txt 阅读全文