-
Notifications
You must be signed in to change notification settings - Fork 6
Integer-valued ranges and missing values #78
Comments
On 25/07/2016 15:00, Jon Blower wrote:
I think this issue should be solved in the software by reading the |
I think you're right that that's the only realistic solution. A bit of a pain though. With numpy arrays of floating point numbers, does it matter if we use NaNs for missing values, or are masked arrays better? Do they give different results, or perform differently? |
If efficiency is important, I would use NaNs because masked arrays are |
Closing this as it's not a real issue. The libraries we've created can deal with it, and yes it's a bit annoying, but it's also not too bad. I think, if anything, then this may be picked up in the future with a new range type that supports both missing value encoding but also offset/scaling. |
In JSON there's nothing wrong with having an array of integers with missing values:
But in many programming languages (e.g. numpy in Python) this can cause an issue as there is no way to record a "missing value" in an array of integers. (With floating point numbers one can use NaN for missing values.)
The workarounds would include:
So there are two possible courses of action:
The text was updated successfully, but these errors were encountered: