Split Full Name
people has a column full_name written as "First Last" (exactly one space). Return a DataFrame with two columns, first and last, holding the two parts, in row order.
Example 1
people {"full_name":["Ada Lovelace","Alan Turing"]}
returns {"columns":["first","last"],"rows":[["Ada","Lovelace"],["Alan","Turing"]]}
Ada and Lovelace, Alan and Turing.
Constraints
- The tables are small
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Stack Two TablesEasy
- Teams Above AverageEasy
- Time per EmployeeEasy
- Triangle JudgementEasy
- Weekday CountsEasy
- Weighted GradeEasy
- Words per RowEasy
- Above Department AverageMedium