Task: Sorting DataFrame by Custom List in Pandas
Task: Sorting DataFrame by Custom List in Pandas: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that sorts a pandas DataFrame by multiple columns, where one of the columns should be sorted according to a custom order (not alphabetically).
The task
You need to write a Python script that sorts a pandas DataFrame by multiple columns, where one of the columns should be sorted according to a custom order (not alphabetically).
Part of PrimeIntellect/Terminal-Lego-15k.