Skip to content

Commit

Permalink
improve map_df
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Oct 6, 2023
1 parent 8c5a970 commit 3f2baa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMIP/CMIP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ function cbind(x::AbstractDataFrame; kw...)
# end
end

function map_df(fun::Function, lst::GroupedDataFrame{DataFrame})
function map_df(fun::Function, lst::GroupedDataFrame{DataFrame}, args...; kw...)
n = length(lst)
map(i -> fun(lst[i]), 1:n)
map(i -> fun(lst[i], args...; kw...), 1:n)
end

include("esgf.jl")
Expand Down

0 comments on commit 3f2baa4

Please sign in to comment.