Skip to content

Inconsistent printing of booleans with and without missings #39590

@racinmat

Description

@racinmat

Applicable in versions of Julia:
1.5.3, 1.6.0-rc1

julia> rand([true,missing], 2, 2)
2×2 Array{Union{Missing, Bool},2}:
 true         missing
     missing  missing

julia> rand([true, false], 2, 2)
2×2 Array{Bool,2}:
 0  0
 0  1

when missing values are present, booleans are printed in a different way than without missing values, it should be consistent, either true/false or 0/1 all the times.

This was created based on the discussion in https://julialang.slack.com/archives/C67910KEH/p1612874306319500

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]display and printingAesthetics and correctness of printed representations of objects.missing dataBase.missing and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions