Skip to content

Commit

Permalink
included fill_na() as well
Browse files Browse the repository at this point in the history
  • Loading branch information
drizk1 committed Aug 3, 2023
1 parent d43f4dd commit 4e51309
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/summary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ macro summary(df, cols...)
end
end


#"""
#$docstring_fill_na
#"""

function locf(column::AbstractVector)
last_observation = column[1]
for i in 1:length(column)
Expand All @@ -65,7 +60,10 @@ function nocb(column::AbstractVector)
return column
end

function fill(column::AbstractVector, method::String)
"""
$docstring_fill_na
"""
function fill_na(column::AbstractVector, method::String)
if method == "locf"
return locf(column)
elseif method == "nocb"
Expand Down

0 comments on commit 4e51309

Please sign in to comment.