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