This is why, IMHO, Nullables are a mess at the moment. You have to either
get(df[1,:A]) or otherwise extract the actual value, since very few things
handle Nullables out of the box.
On Monday, October 3, 2016 at 8:21:39 AM UTC-7, Min-Woong Sohn wrote:
>
> I am using DataFrames from master branch (with NullableArrays as the
> default) and was wondering how the following should be done:
>
> df = DataFrame()
> df[:A] = NullableArray([1,2,3])
>
> The following are not allowed or return wrong values:
>
> df[1,:A] == 1 # false
> df[1,:A] > 1 # MethodError: no method matching isless(::Int64,
> ::Nullable{Int64})
> df[3,:A] + 1 # MethodError: no method matching +(::Nullable{Int64},
> ::Int64)
>
> How should I get around these issues? Does anybody know if there is a plan
> to support these kinds of computations directly?
>
>
>
>
>
>