def str2float(item):
    """Convert string type to float type
    """
    if item == 'NR':
        return None
    elif item:
        try:
            return float(item)
        except ValueError:
            return None
    else:
        return None