SyntaxFix
Write A Post
Hire A Developer
Questions
you can simple use this following code
train_data['labels']= train_data[["LABEL1","LABEL1","LABEL2","LABEL3","LABEL4","LABEL5","LABEL6","LABEL7"]].values.tolist() train_df = pd.DataFrame(train_data, columns=['text','labels'])