Splitting multiple rows into columns


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.
What is this kind of dataframe called? If I want to plot it how should I approach?

Please help…!