Multiindex from array in Pandas with non unique data,"group_position(df['Z'], df['A'])"