Commit 72d8d396 authored by Franck Dary's avatar Franck Dary
Browse files

Added NA to default value in NumericColumnModule

parent a45d405b
......@@ -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));}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment