diff --git a/Project.toml b/Project.toml index a382ff61..60433615 100644 --- a/Project.toml +++ b/Project.toml @@ -13,7 +13,7 @@ ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea" [compat] ArchGDAL = "0.4, 0.5, 0.6" -Downloads = "1.4, 1.5" +Downloads = "1.4" RecipesBase = "0.7, 0.8, 1.0" Requires = "1.0" ZipFile = "0.8, 0.9" diff --git a/src/integrations/DataFrames.jl b/src/integrations/DataFrames.jl index 73be82c0..fdbe199f 100644 --- a/src/integrations/DataFrames.jl +++ b/src/integrations/DataFrames.jl @@ -76,7 +76,7 @@ function DataFrames.DataFrame(layers::Array{T}; kw...) where {T <: SimpleSDMLaye lons = repeat(longitudes(l1), inner = size(l1, 1)) values = mapreduce(x -> vec(x.grid), hcat, layers) - df = DataFrames.DataFrame(values; kw...) + df = DataFrames.DataFrame(values, :auto; kw...) DataFrames.insertcols!(df, 1, :latitude => lats) DataFrames.insertcols!(df, 1, :longitude => lons) return df diff --git a/test/Project.toml b/test/Project.toml index 20026d62..3bd386f8 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -6,4 +6,5 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] +DataFrames = "0.22, 1.0" GBIF = "0.2, 0.3"