-
Notifications
You must be signed in to change notification settings - Fork 5
replace_values() throws TypeError: Invalid value 'ERROR:Unmapped - Not In Refset' for dtype Int64 #45
Comments
Pull request #46 |
Thanks for reporting this @georgm8 . The data expected in this column are SNOMED codes which are integers rather than strings. feature_maps.py generates the map between the SNOMED codes as integers and string categories. Not sure why that error appears. Looking at this on my phone at the moment. Will check this evening and merge. Regarding the SNOMED codes for missing data, I agree that they should go in feature_maps along with 0 which is already in there I think. |
@georgm8, I have rerun v0.3.1 on the LTH data and don't get this error. The following is the truncated output of Can you please check and close this issue if this explains it? Also please see pandas-dev/pandas#45729.
|
Thanks - you're absolutely right - I forgot to remove the Nullable Integer data type I was testing out earlier. No error with |
replace_values() function throws the error
TypeError: Invalid value 'ERROR:Unmapped - Not In Refset' for dtype Int64
as it is trying to replace values in a column with the string value in the variableother
in instances where the Pandas Series data is not a string.Quick fix suggested is to change the series to a string and also replace dictionary keys with strings.
The text was updated successfully, but these errors were encountered: