Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

Inconsistency of results when using isna and & #233

@joshbode

Description

@joshbode

For fixed input, I am getting inconsistent results when using the bitwise and operator &, i.e.

using DataArrays
using DataStructures
julia> x = DataVector{Float64}(0.0:0.1:1.0); x[1] = NA;

julia> counter([count(identity, !isna(x) & (x .>= 0.5)) for i in 1:1000])
DataStructures.Accumulator{Int64,Int64} with 5 entries:
  7  => 54
  9  => 43
  10 => 1
  8  => 50
  6  => 852

The answer is expected to be 6 (and only 6!).

Version: Julia 0.5
Platform: OS X

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions