# Import your libraries
import pandas as pd
# Start writing code
sf_public_salaries.groupby('basepay', as_index=False).mean()[['basepay','jobtitle']]
getting error message "['jobtitle'] not in index"
Does anyone know how to fix this?
https://platform.stratascratch.com/coding/9972-find-the-base-pay-for-police-captains?code_type=2