Skip to content

InexactError when dealing with means of integers with missings #126

@eirikbrandsaas

Description

@eirikbrandsaas
a = [missing missing; 0 1]
mean(a;dims=2) # InexactError

The answer should be [missing, 0.5].

Note that

a = [missing missing; 1 1]
means(a;dims=2) # [missing 1]

works.

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