You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Port to CategoricalArrays 0.8, bump version to 0.6.2 (#602)
The change to `levels!` implies that all reference codes will be updated
at the end to match the new order of levels (unless they were already sorted).
Require DataFrames 0.21 which is the only version to support CategoricalArrays 0.8.
Bump version to 0.6.2
Copy file name to clipboardExpand all lines: src/header.jl
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ end
85
85
throw(ArgumentError("\"$source\" is not a valid file"))
86
86
(types !==nothing&&any(x->!isconcretetype(x) &&!(x isa Union), types isa AbstractDict ?values(types) : types)) &&throw(ArgumentError("Non-concrete types passed in `types` keyword argument, please provide concrete types for columns: $types"))
87
87
if type !==nothing&&typecode(type) == EMPTY
88
-
throw(ArgumentError("$type isn't supported in the `type` keyword argument; must be one of: `Int64`, `Float64`, `Date`, `DateTime`, `Bool`, `Missing`, `PooledString`, `CategoricalString{UInt32}`, or `String`"))
88
+
throw(ArgumentError("$type isn't supported in the `type` keyword argument; must be one of: `Int64`, `Float64`, `Date`, `DateTime`, `Bool`, `Missing`, `PooledString`, `CategoricalValue{String, UInt32}`, or `String`"))
for x in (types isa AbstractDict ?values(types) : types)
@@ -94,7 +94,7 @@ end
94
94
break
95
95
end
96
96
end
97
-
throw(ArgumentError("unsupported type $T in the `types` keyword argument; must be one of: `Int64`, `Float64`, `Date`, `DateTime`, `Bool`, `Missing`, `PooledString`, `CategoricalString{UInt32}`, or `String`"))
97
+
throw(ArgumentError("unsupported type $T in the `types` keyword argument; must be one of: `Int64`, `Float64`, `Date`, `DateTime`, `Bool`, `Missing`, `PooledString`, `CategoricalValue{String, UInt32}`, or `String`"))
98
98
end
99
99
checkvaliddelim(delim)
100
100
ignorerepeated && delim ===nothing&&throw(ArgumentError("auto-delimiter detection not supported when `ignorerepeated=true`; please provide delimiter like `delim=','`"))
@@ -199,10 +199,10 @@ end
199
199
T = type ===nothing? (streaming ? (STRING | MISSING) : EMPTY) : (typecode(type) | USER)
200
200
if types isa Vector
201
201
typecodes = TypeCode[typecode(T) | USER for T in types]
0 commit comments