employee_id is an odd number using the modulo operator % 2.name does not start with 'M' using the NOT REGEXP '^M' in SQL or startswith('M') in Pandas.IF function in SQL or a lambda function in Pandas to assign the bonus based on the conditions.employee_id and the calculated bonus, ordering the results by employee_id.apply with axis=1, create a new bonus column, and sort the DataFrame by employee_id.erDiagram
Employees {
int employee_id PK
varchar name
int salary
}