HF RL Explorer

Task: Sort DataFrame by String Length

Task: Sort DataFrame by String Length: a task in Terminal-Lego-15k (Harbor dataset). You are given a pandas DataFrame containing names and scores. Your task is to write a Python script that sorts the DataFrame by the length of the strings in the name column (ascending order - shortest names first).

The task

You are given a pandas DataFrame containing names and scores. Your task is to write a Python script that sorts the DataFrame by the length of the strings in the `name` column (ascending order - shortest names first).

Part of PrimeIntellect/Terminal-Lego-15k.