Multiindex from array in Pandas with non unique data,"df.set_index(['Z', 'A', 'pos']).unstack('pos')"