Question 27
3 points
Save Answer
Consider a dataframe df_employee defined on the following columns: data = {'ID': [1, 2, 3, 4, 5, 6], 'Name': ['Paolo', 'Tom', 'Michele', 'Mike', 'Laura', 'Paolo'], 'Age': [25, 35, 45, 55, 65, 75], 'Stipend': [50, 60, 70, 80, 90, 100]}. What does the following expression do: df_employee.loc[(df_employee['Name'] == 'Paolo') & (df_employee['Stipend'] > 80)]['Stipend'] / 2
Halves the stipend to all employees named Paolo and older than 80
Doubles the stipend to all employees named Paolo and older than 80
Doubles the stipend to all employees
Fail with syntax error