Skip to content
Snippets Groups Projects
Commit 33704b93 authored by Jakub Dylag's avatar Jakub Dylag
Browse files

(bug) parse.py "is integer" check using string split

parent d8e79810
No related branches found
No related tags found
No related merge requests found
...@@ -389,8 +389,10 @@ class Snomed(Proto): ...@@ -389,8 +389,10 @@ class Snomed(Proto):
), ),
( (
"Is Integer", "Is Integer",
lambda codes : ~codes.str.contains('.'), lambda codes: ~codes.str.contains("."),
lambda codes, codes_file : codes.astype(float).astype(int).astype(str) #Convert from float to integer and back to string lambda codes, codes_file: codes.str.split(".")
.str[0]
.astype(str), # Convert from float to integer and back to string
), ),
( (
"Numeric", "Numeric",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment