Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Fix DataFrames compatibility #96

Merged
merged 6 commits into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/integrations/DataFrames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"