I am running multiple dataframes and would like to order them a specific way: for example:
df1
dog
cat
rat
goat
df2
dog
cat
rat
goat
I want to sort rows of a dataframe based on row index labels that i specify. So i want to input(dog, rat, goat, cat) and receive this result:
df1
dog
rat
goat
cat
df2
dog
rat
goat
cat