def f2(c):
    if ((0 <= c['pitch'] <= 3.5) or (c['hours'] != 9999) or (((c['pitch'] > 3.5) or (c['pitch'] < 0)) and ((c['ap_av'] <= (0.1 * df2x['ap_av'].max())) or (c['ap_av'] >= (0.9 * df2x['ap_av'].max()))))):
        return 'normal'
    else:
        return 'curtailed'
def f2(c):
    if ((0 <= c['pitch'] <= 3.5) or (c['hours'] != 9999) or (((c['pitch'] > 3.5) or (c['pitch'] < 0)) and ((c['ap_av'] <= (0.1 * df2x['ap_av'].max())) or (c['ap_av'] >= (0.9 * df2x['ap_av'].max()))))):
        return 'normal'
    else:
        return 'curtailed'