I have a data frame with texts and labels. Each text has multiple rows with on label.
dummy_df = pd.DataFrame([['Text1','label1'], ['Text1', 'label2']], columns=["TEXT", "LABELS"])
I would like to have the following to apply MultiLabelBinarizer() function.
TEXT | LABEL
Text1| [[label1,label2]]