I have a csv file which contains 2 column and a list which contains all the values of the first column randomly. I want to sort the csv file like the list contains the value.
CSV file:
Name age
---- ----
alice 17
bob 18
carol 19
List
name = ['bob','carol','alice']
Expected ouput:
Name age
---- ----
bob 18
carol 19
alice 17
How to do it with python pandas module??