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

Fix some typos #2201

Merged
merged 2 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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 docs/src/man/split_apply_combine.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ which can be used in a similar fashion to a `NamedTuple`.

Grouping a data frame using the `groupby` function can be seen as adding a lookup key
to it. Such lookups can be performed efficiently by indexing the resulting
`GroupedDataFrame` with a a `Tuple` or `NamedTuple`:
`GroupedDataFrame` with a `Tuple` or `NamedTuple`:
```
julia> df = DataFrame(g = repeat(1:1000, inner=5), x = 1:5000);

Expand Down
4 changes: 2 additions & 2 deletions src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ julia> df3 = DataFrame(a = [1, 2], b = [[1, 2], [3, 4]], c = [[5, 6], [7]])

julia> flatten(df3, [:b, :c])
ERROR: ArgumentError: Lengths of iterables stored in columns :b and :c
are not the the same in row 2
are not the same in row 2
```
"""
function flatten(df::AbstractDataFrame,
Expand All @@ -1814,7 +1814,7 @@ function flatten(df::AbstractDataFrame,
r = findfirst(x -> x != 0, length.(v) .- lengths)
colnames = names(df)
throw(ArgumentError("Lengths of iterables stored in columns :$(colnames[col1])" *
" and :$(colnames[col]) are not the the same in row $r"))
" and :$(colnames[col]) are not the same in row $r"))
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/groupeddataframe/splitapplycombine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ is undefined.
See also:
- [`by(f, df, cols)`](@ref) is a shorthand for `combine(f, groupby(df, cols))`.
- [`map`](@ref): `combine(f, groupby(df, cols))` is a more efficient equivalent
of `combine(map(f, groupby(df, cols)))`.
of `combine(map(f, groupby(df, cols)))`.

# Examples
```jldoctest
Expand Down