I have this 3 lists on a Pandas DF:
flat_values indexes tmp_values
[20, None, None, None, None, 30, 40] [1, 2, 3, 4] [40, 30, 10, 10]
What I want to do is to get a new field on my DF with a list consisting of the flat_values list and the tmp_values inserted at the position reflected in the indexes list numbers. So that:
flat_values indexes tmp_values new_values
[20, None, None, None, None, 30, 40] [1, 2, 3, 4] [40, 30, 10, 10] [20, 40, 30, 10, 10, 30, 40]
Thank you very much
20forflat_valuesand40fortmp_valuesare position 0.