i have a dataframe with a row containing first names of people. Now i want to sort the dataframe on name but not on alphabetical order but on a given order. So for example I want to order my dataframe on row of names in the order:
L = ['marc','paul','beck','julia','rest']
If I have a dataframe containing a row with names I want the marc's at the top and then paul's, beck's etc.
How can i do this time efficient in python?