Drop a Column
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
- 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
- Everyone ElseBeginner
- Max per ColumnBeginner
- Missing Price NamesBeginner
- Names in CityBeginner
- Pick Two ColumnsBeginner
- Rename ColumnsBeginner
- Running Sales TotalBeginner
- Sorted Unique ValuesBeginner