Skip to content
Snippets Groups Projects
Commit 72d8d396 authored by Franck Dary's avatar Franck Dary
Browse files

Added NA to default value in NumericColumnModule

parent a45d405b
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ void NumericColumnModuleImpl::addToContext(std::vector<std::vector<long>> & cont
if (index >= 0)
{
auto value = config.getAsFeature(column, index).get();
try {res = value == "_" ? defaultValue : std::stof(value);}
try {res = (value == "_" or value == "NA") ? defaultValue : std::stof(value);}
catch (std::exception & e)
{util::myThrow(fmt::format("{} for '{}'", e.what(), value));}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment