FunctionRacerProblemsRace

Drop a Column

BeginnerpandasPython

df has columns id, notes and score. Return a DataFrame without the notes column, with the other columns and the rows unchanged.

Example 1

df {"id":[1,2],"notes":["a","b"],"score":[5,6]}
returns {"columns":["id","score"],"rows":[[1,5],[2,6]]}

Only id and score remain.

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