I have a list index = ['2', '3', '1', '5', '4', '6']
and there is also another list feature= ['a', 'b', 'c', 'd','e', 'f']
I want to print a new feature list which have the order same tothe index list. e.g the result should be new_feature=['b' , 'c','a', 'e' , 'f' ]
how to implement in python?
I have a list index = ['2', '3', '1', '5', '4', '6'] and there is also another list feature= ['a', 'b', 'c', 'd', 'e', '
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am