-
Notifications
You must be signed in to change notification settings - Fork 50
Work around undefined values when converting DataArrays? #107
Comments
We should definitely be able to convert DataArrays with missing values. If there are actually undefined values, I think it's fine for conversion to fail, since it fails for Arrays as well. |
Ok. I'll deal with that when updating pull request for conversion functions. |
I just ran into this bug, i.e. I'm trying to convert a DataArray{Any} into a typed DataArray, and that doesn't work if there are NAs in origin data. @johnmyleswhite |
Not likely to have time to fix up the conversion PR soon, but this specific bug should be easy to fix if somebody has a little time. |
Bump. |
I doubt I'll work on this since we're going to release a beta of |
Speaking of which, I'll go ahead and fix this in |
I think this can be closed -- things like da = @data([NA, 1.0,2.0])
da2 = convert(DataArrays.DataArray{Int32,1}, da) work now. |
Should we make the following snippet work?
Note that this fails even when there are missing values:
When there are missing values, this seems like a clear bug to me. When there aren't missing values, this might be the right behavior.
The text was updated successfully, but these errors were encountered: