Skip to content

Commit

Permalink
update after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins committed Sep 3, 2023
1 parent caac620 commit da4f254
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/dataframe/insertion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ $METADATA_FIXED
cols::Symbol=:setequal, promote::Bool=(cols in [:union, :subset]))
Add one row at the end of `df` in-place, taking the values from `row`.
Several rows can be added by passing them as separate arguments from `rows`.
$INSERTION_COMMON
Expand Down Expand Up @@ -547,14 +548,16 @@ function Base.push!(df::DataFrame, row::Any;
end

"""
pushfirst!(df::DataFrame, row::Union{Tuple, AbstractArray}...;
pushfirst!(df::DataFrame, row::Union{Tuple, AbstractArray};
cols::Symbol=:setequal, promote::Bool=false)
pushfirst!(df::DataFrame, row::Union{DataFrameRow, NamedTuple, AbstractDict,
Tables.AbstractRow}...;
Tables.AbstractRow};
cols::Symbol=:setequal, promote::Bool=(cols in [:union, :subset]))
pushfirst!(df::DataFrame, rows...;
cols::Symbol=:setequal, promote::Bool=(cols in [:union, :subset]))
Add one row at the beginning of `df` in-place, taking the values from `row`.
Several rows can be added by passing them as separate arguments.
Several rows can be added by passing them as separate arguments from `rows`.
$INSERTION_COMMON
Expand Down

0 comments on commit da4f254

Please sign in to comment.