text_plain_output_1.png
def ref_string(code):
    if 'Fire' in code:
        return 'Fire'
    elif 'EMS' in code:
        return 'EMS'
    elif 'Traffic' in code:
        return 'Traffic'
    else:
        return False
cal['Reason'] = cal['title'].apply(lambda x: ref_string(x))
cal['Reason']