FunctionRacerProblemsRace

Fix Name Capitals

EasypandasPython

users has columns id and name, where names are written with random upper and lower case letters. Make the first letter upper case and all other letters lower case. Return a DataFrame with the columns id and name, ordered by id from smallest to largest.

Example 1

users {"id":[2,1],"name":["aLICE","bOB"]}
returns {"columns":["id","name"],"rows":[[1,"Bob"],[2,"Alice"]]}

Sorted by id: Bob and Alice.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems