What would be the most efficient way to create a list of the labels from the dataframe below in the order of mylist?
import numpy as np
import pandas as pd    
mylist = ['a1.jpeg','a2.jpeg','b1.jpeg','b2.jpeg','c1.jpeg','c2.jpeg']
    
dat = np.array([(1, 2, 1, 1, 2, 2), ('a2jpeg', 'a1jpeg', 'c2jpeg', 'b2jpeg', 'b1jpeg' , 'c1jpeg')])
df = pd.DataFrame(np.transpose(dat), columns=['labels', 'filenames'])
df
>>labels    filenames
0   1   a2.jpeg
1   2   a1.jpeg
2   1   c2.jpeg
3   1   b2.jpeg
4   2   b1.jpeg
5   2   c1.jpeg