def rec_key_change(key):
    """
    Change recommendation key to numerical values
    """
    if key == 'none':
        return 0
    elif key == 'hold':
        return 1
    elif key == 'buy':
        return 2
    elif key == 'strong_buy':
        return 3