Skip to content

Commit 0c2361a

Browse files
authored
Fix tests with DataFrames 0.21 (#179)
Keep support for 0.20 since it's very easy. Add compatibility bounds to ensure this problem doesn't happen again.
1 parent 61785af commit 0c2361a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1212
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1313

1414
[compat]
15+
CategoricalArrays = "0.7"
1516
DataAPI = "1.1"
17+
DataFrames = "0.20, 0.21"
1618
DataStructures = "0.17.0"
1719
ShiftedArrays = "1.0.0"
1820
StatsBase = "0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.30, 0.31, 0.32, 0.33"

test/modelmatrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
y = repeat([:c, :d], inner = 2, outer = 2),
161161
z = repeat([:e, :f], inner = 4))
162162
categorical!(d)
163-
cs = Dict([Pair(name, EffectsCoding()) for name in names(d)])
163+
cs = Dict([Symbol(name) => EffectsCoding() for name in names(d)])
164164
d.n = 1.:8
165165

166166

0 commit comments

Comments
 (0)