All Questions
1 question
1
vote
1
answer
76
views
Using integers from columns as slice indexers of a string in another column
I have a df:
string_pos = {'string': [ 'aabb', 'ddcc', ],
'position_1': [0, 1],
'position_2': [3, 4]}
output:
string position_1 position_2
0 aabb 0 ...