Let's say, for the sake of this question, I have a column titled Blah
filled with the following data points (I will give it in a list for clarity):
Values = ['one', 'two', 'four', 'six', 'nine']
How could I choose to sort by specific values in this column? For example, I would like to sort this column, Blah
, filled with the values above into the following: ['nine', 'four', 'two', 'six', 'one']
.
Unfortunately, it is not as easy as just sort_values and choose alphabetical!