diff --git a/src/IterableTables.jl b/src/IterableTables.jl index f56e734..5b6f34a 100644 --- a/src/IterableTables.jl +++ b/src/IterableTables.jl @@ -14,7 +14,9 @@ function __init__() @require StatsModels="3eaba693-59b7-5ba5-a881-562e759f1c8d" if !isdefined(StatsModels, :Tables) include("integrations/statsmodels.jl") end - @require TimeSeries="9e3dc215-6440-5c97-bce1-76c03772f85e" include("integrations/timeseries.jl") + @require TimeSeries="9e3dc215-6440-5c97-bce1-76c03772f85e" if !isdefined(TimeSeries, :Tables) + include("integrations/timeseries.jl") + end @require Temporal="a110ec8f-48c8-5d59-8f7e-f91bc4cc0c3d" include("integrations/temporal.jl") end diff --git a/test/test_integration_timeseries.jl b/test/test_integration_timeseries.jl index dda4a67..6724d32 100644 --- a/test/test_integration_timeseries.jl +++ b/test/test_integration_timeseries.jl @@ -43,7 +43,7 @@ df4 = DataFrame(source_ta4) @test df4[:B] == [3,2,1] source_df = DataFrame(a=[4.,5.], timestamp=[Date(1999,1,1),Date(1999,1,2)], b=[6.,8.]) -ta2 = TimeArray(source_df) +ta2 = TimeArray(source_df, timestamp=:timestamp) @test length(ta2) == 2 @test TimeSeries.colnames(ta2) == [:a, :b] @test TimeSeries.values(ta2) == [4. 6.;5. 8.]