Skip to content

Commit

Permalink
hopefully fixed fill_na docstring alignment?
Browse files Browse the repository at this point in the history
  • Loading branch information
drizk1 committed Aug 3, 2023
1 parent fdca784 commit e449b4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/docstrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ julia> @chain df begin

const docstring_fill_na =
"""
fill(column, method)
fill_na(column, method)
Fills missing values in a given column of a DataFrame. This function uses either Last Observation Carried Forward (LOCF) or Next Observation Carried Backward (NOCB) methods based on the provided argument.
Expand All @@ -2094,9 +2094,9 @@ Fills missing values in a given column of a DataFrame. This function uses either
julia> df = DataFrame(dt1=[missing, 0.2, missing, missing, 1, missing, 5, 6], dt2=[0.3, missing, missing, 3, missing, 5, 6,missing]);
julia> @chain df begin
@mutate(dt1 = ~fill_na(dt1, "locf"))
@mutate(dt2 = ~fill_na(dt2, "nocb"))
end
@mutate(dt1 = ~fill_na(dt1, "locf"))
@mutate(dt2 = ~fill_na(dt2, "nocb"))
end
8×2 DataFrame
Row │ dt1 dt2
│ Float64? Float64?
Expand Down

0 comments on commit e449b4d

Please sign in to comment.