FunctionRacerProblemsRace

Stack Two Tables

EasypandasPython

first and second both have the columns id and name. Return one DataFrame with all rows of first followed by all rows of second, with the same two columns.

Example 1

first {"id":[1],"name":["a"]}
second {"id":[2,3],"name":["b","c"]}
returns {"columns":["id","name"],"rows":[[1,"a"],[2,"b"],[3,"c"]]}

Three rows: a, b, c.

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