Is it possible to order/ran a data frame by a column with an specific order, say I have
col1 col2
v_1 4
v_2 3
v_3 1
And say you want to order as:
col1 col2
v_3 1
v_1 4
v_2 3
As I wanted to order by [3,1,2] in column col1. Simplified example as my df has 42 rows. What I expected is being able to pass a list of values [3,1,2] and sort col1 based on such indicators, so 1 refers to v_1, etc