Fix Name Capitals
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
- Names are not empty
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Grade LettersEasy
- Ids in Only One TableEasy
- InitialsEasy
- Invalid TweetsEasy
- Latest Row per PlayerEasy
- Longest TitleEasy
- Make SlugsEasy
- Median per GroupEasy