copy[alert_status].loc[alert_read_criteria] = 1
alert_status_dict = {(0): 'Not Read', (1): 'Read'}
copy[alert_status] = copy[alert_status].map(alert_status_dict)
return copy[alert_status]
Return output of function that takes pandas dataframe as a parameter