def negative_to_nan(value):
    'Convert negative values to missing.\n    \n    ANES codes various non-answers as negative numbers.\n    For instance, if a question does not pertain to the \n    respondent.\n    '
    return (value if (value >= 0) else np.nan)
Convert negative values to missing.

ANES codes various non-answers as negative numbers.
For instance, if a question does not pertain to the 
respondent.
def negative_to_nan(value):
    'Convert negative values to missing.\n    \n    ANES codes various non-answers as negative numbers.\n    For instance, if a question does not pertain to the \n    respondent.\n    '
    return (value if (value >= 0) else np.nan)