Task: Sorting DataFrame Columns Based on Column Names
Task: Sorting DataFrame Columns Based on Column Names: a task in Terminal-Lego-15k (Harbor dataset). You have a pandas DataFrame with columns that need to be sorted alphabetically/numerically by their column names. The columns follow a pattern like 'Q1.1', 'Q1.2', 'Q1.3', 'Q6.1', etc., but they…
The task
You have a pandas DataFrame with columns that need to be sorted alphabetically/numerically by their column names. The columns follow a pattern like 'Q1.1', 'Q1.2', 'Q1.3', 'Q6.1', etc., but they are currently in a random order.
Part of PrimeIntellect/Terminal-Lego-15k.