I have a csv file loaded to python, and it has 4 columns and 50 rows. column 1 = A, column 2 = B, column 3 = C and column 4 = D. I want to use this file for classification. and for that I need only 2 columns. One for the labels and the other for the data.
So what I want is how to convert all the data so that I have something like this:
A, "some text"
A, "...."
B, "...."
C, "....."
A, "....."
and so on, instead of
A B C D
"..." "..." "..." "..."
"..." "..." "..." "..."
Otherwise I have to do it manually, adding all the labels before every text.