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

Commit

Permalink
🔨 fix DataFrames integration with v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldansereau committed May 13, 2021
1 parent a3c14e1 commit 590b83b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 590b83b

Please sign in to comment.