Skip to content

Commit

Permalink
Merge b5d6c61 into 2574552
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Nov 26, 2017
2 parents 2574552 + b5d6c61 commit e2e331d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/abstractdataframe/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ Data.streamtypes(::Type{DataFrame}) = [Data.Column, Data.Field]
Data.weakrefstrings(::Type{DataFrame}) = true

allocate(::Type{T}, rows, ref) where {T} = Vector{T}(rows)
allocate(::Type{CategoricalString{R}}, rows, ref) where {R} = CategoricalArray{String, 1, R}(rows)
allocate(::Type{Union{CategoricalString{R}, Missing}}, rows, ref) where {R} = CategoricalArray{Union{String, Missing}, 1, R}(rows)
allocate(::Type{CategoricalValue{T, R}}, rows, ref) where {T, R} =
CategoricalArray{T, 1, R}(rows)
allocate(::Type{Union{Missing, CategoricalValue{T, R}}}, rows, ref) where {T, R} =
Expand Down

0 comments on commit e2e331d

Please sign in to comment.