Splitting multiple rows into columns

unknown-3

I’m not familiar with the actual name of this kind of table, i want the mode_0 and mode_1 columns from the rows of mode ==0 and mode ==1.
Also,
What is this kind of dataframe called? If I want to plot it how should I approach?

Please help…!