Skip to content

Commit cff0a78

Browse files
authored
Merge pull request #91 from queryverse/prepare-for-next-statsmodels
Prepare for next statsmodels
2 parents 7cf4773 + a26d795 commit cff0a78

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
By contributing code to IterableTables.jl, you are agreeing to release it under the [MIT License](https://github.com/davidanthoff/IterableTables.jl/blob/master/LICENSE.md).
1+
By contributing code to IterableTables.jl, you are agreeing to release it under the [MIT License](https://github.com/queryverse/IterableTables.jl/blob/master/LICENSE.md).

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The IterableTables.jl package is licensed under the MIT "Expat" License:
22

3-
> Copyright (c) 2017-2018: David Anthoff.
3+
> Copyright (c) 2017-2019: David Anthoff.
44
>
55
>
66
> Permission is hereby granted, free of charge, to any person obtaining a copy

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# IterableTables.jl v0.11.0 Release Notes
2+
* Remove StatsModels.jl integration for versions that load Tables.jl
3+
14
# IterableTables.jl v0.10.0 Release Notes
25
* Reenable TimerSeries.jl support
36
* Reenable Temporal.jl support

src/IterableTables.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ function __init__()
1111
@require DataFrames="a93c6f00-e57d-5684-b7b6-d8193f3e46c0" if !isdefined(DataFrames, :Tables)
1212
include("integrations/dataframes.jl")
1313
end
14-
@require StatsModels="3eaba693-59b7-5ba5-a881-562e759f1c8d" include("integrations/statsmodels.jl")
14+
@require StatsModels="3eaba693-59b7-5ba5-a881-562e759f1c8d" if !isdefined(StatsModels, :Tables)
15+
include("integrations/statsmodels.jl")
16+
end
1517
@require TimeSeries="9e3dc215-6440-5c97-bce1-76c03772f85e" include("integrations/timeseries.jl")
1618
@require Temporal="a110ec8f-48c8-5d59-8f7e-f91bc4cc0c3d" include("integrations/temporal.jl")
1719
end

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ end
66
@testset "IterableTables" begin
77

88
include("test_integration_dataframes.jl")
9-
# TODO Reenable once GLM is 0.7 compatible
10-
# include("test_integration_statsmodels.jl")
9+
include("test_integration_statsmodels.jl")
1110
include("test_integration_timeseries.jl")
1211
include("test_integration_temporal.jl")
1312
# include("test_integration_juliadb.jl")

test/test_integration_statsmodels.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ using Test
66

77
@testset "StatsModels" begin
88

9-
source_array = [(a=DataValue(1),b=DataValue(1.),c=DataValue("A")), (a=DataValue(2),b=DataValue(2.),c=DataValue("B")), (a=DataValue(3),b=DataValue(3.),c=DataValue("C"))]
9+
source_array = [(a=1,b=1.,c="A"), (a=2,b=2.,c="B"), (a=3,b=3.,c="C")]
1010

11-
# TODO add some test beyond just creating a ModelFrame
1211
mf_array = StatsModels.ModelFrame(StatsModels.@formula(a~b), source_array)
1312

14-
# lm(StatsModels.@formula(a~b), source_df)
13+
@test mf_array isa StatsModels.ModelFrame
14+
15+
x = lm(StatsModels.@formula(a~b), source_array)
1516

1617
end

0 commit comments

Comments
 (0)