Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional args style #2547

Merged
merged 2 commits into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ rename(df::AbstractDataFrame, args...) = rename!(copy(df), args...)
rename(f::Function, df::AbstractDataFrame) = rename!(f, copy(df))

"""
size(df::AbstractDataFrame, [dim])
size(df::AbstractDataFrame[, dim])

Return a tuple containing the number of rows and columns of `df`.
Optionally a dimension `dim` can be specified, where `1` corresponds to rows
Expand Down
2 changes: 1 addition & 1 deletion src/abstractdataframe/reshape.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
stack(df::AbstractDataFrame, [measure_vars], [id_vars];
stack(df::AbstractDataFrame [, measure_vars [, id_vars] ];
bkamins marked this conversation as resolved.
Show resolved Hide resolved
variable_name=:variable, value_name=:value,
view::Bool=false, variable_eltype::Type=String)

Expand Down
2 changes: 1 addition & 1 deletion src/abstractdataframe/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function _show(io::IO,
end

"""
show([io::IO,] df::AbstractDataFrame;
show([io::IO, ]df::AbstractDataFrame;
allrows::Bool = !get(io, :limit, false),
allcols::Bool = !get(io, :limit, false),
allgroups::Bool = !get(io, :limit, false),
Expand Down
2 changes: 1 addition & 1 deletion src/dataframe/dataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ end
##############################################################################

"""
insertcols!(df::DataFrame, [col], (name=>val)::Pair...;
insertcols!(df::DataFrame[, col], (name=>val)::Pair...;
makeunique::Bool=false, copycols::Bool=true)

Insert a column into a data frame in place. Return the updated `DataFrame`.
Expand Down
2 changes: 1 addition & 1 deletion src/dataframerow/dataframerow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ end
Base.view(r::DataFrameRow, ::Colon) = r

"""
size(dfr::DataFrameRow, [dim])
size(dfr::DataFrameRow[, dim])

Return a 1-tuple containing the number of elements of `dfr`.
If an optional dimension `dim` is specified, it must be `1`, and the number of
Expand Down