Budgets nobody is spending

Data framesMedium10 min

Your task

Given staff with columns name, team, salary, hired and manager, and budgets with columns team and budget, return the budget rows whose team has no employees. Return team and budget, sorted by team ascending.

Examples

unspent_budgets(staff: dataframe, budgets: dataframe) -> dataframe
Example 1
Inputunspent_budgets(staff, budgets)
staff
nameteamsalaryhiredmanager
Adaeng1202021-03-01Grace
Graceeng1502019-06-15NULL
Linuseng952022-01-10Grace
Melsales802020-11-05Kay
Kaysales1102018-02-20NULL
Ivansales802023-07-01Kay
Jeandesign1052021-09-30NULL
Niadesign1402022-05-04Jean
More rows not shown
budgets
teambudget
eng900
sales400
ops250
Output
teambudget
ops250