JuliaDB.jl icon indicating copy to clipboard operation
JuliaDB.jl copied to clipboard

table(::DataFrame) converts Missing to DataValue

Open rapus95 opened this issue 6 years ago • 0 comments
trafficstars

Even though the Doc reads that Union{Missing, T} is the default type, the table function converts that Union to DataValue.

julia> df = DataFrames.DataFrame(mis = Union{Missing, Int}[missing])
1×1 DataFrames.DataFrame
│ Row │ mis     │
│     │ Int64⍰ │
├─────┼─────────┤
│ 1   │ missing │

julia> table(df)
Table with 1 rows, 1 columns:
mis
───
#NA

rapus95 avatar Apr 11 '19 00:04 rapus95