def rushing_success(row):
    """Determines whether rushing play was success
    Based on Chase Stuart / Football perspectives
    Returns:
        int: 1 if success, 0 otherwise
    """
    success = 0
    if row.down == 1:
        if row.yards_gained >= 6:
            success = 1
        elif row.yards_gained >= row.ydstogo * .4:
            success = 1
    elif row.down == 2:
        if row.yards_gained >= 6:
            success = 1
        elif row.yards_gained >= row.ydstogo * .5:
            success = 1
    elif row.down > 3:
        if row.yards_gained >= row.ydstogo:
            success = 1
    return success