Given a pd.DataFrame()
COL1 | COL2 | COL3 |
---|---|---|
x | something | AL |
y | in | CA |
z | place | FL |
And a list with items [FL, CA AL] start at FL and end at AL
If I want to order the pandas data frame with the same order as shown in this list, can that be done ? I do not want COL3 to be the index, but that the order of df and list be the same.