Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeffebach committed Oct 27, 2022
1 parent 102126a commit aaaf194
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ end
Return the first occurence of unique rows in an `AbstractDataFrame` according
to given combinations of values in selected columns or their transformation.
`args` can be most column selectors or transformation accepted by `select`.
Users should note that `@distinct` differs from `unique` in `DataFrames.jl,
Users should note that `@distinct` differs from `unique` in DataFrames.jl,
such that `@distinct(df, :x,:y)` is not the same as `unique(df, [:x,:y])`.
See **Details** for a discussion of these differences.
Expand Down Expand Up @@ -2258,7 +2258,7 @@ an intermediate data frame containing columns of `df` specified by `args`. The u
of `df` are thus determined by this intermediate data frame. This focus on `select` allows
for multiple arguments to be passed conveniently in the form of column names or transformations.
Users should be cautious when passing function arguments as vectors. E.g., `@distinct(df, $[:x,:y])`
Users should be cautious when passing function arguments as vectors. E.g., `@distinct(df, $DOLLAR[:x,:y])`
should be used instead of `@distinct(df, [:x,:y])` to avoid unexpected behaviors.
### Examples
Expand Down Expand Up @@ -2361,7 +2361,7 @@ end
@distinct!(d, args...)
In-place selection of unique rows in an `AbstractDataFrame`.
Users should note that `@distinct!` differs from `unique!` in `DataFrames.jl`,
Users should note that `@distinct!` differs from `unique!` in DataFrames.jl,
such that `@distinct!(df, [:x,:y])` is not equal to `unique(df, [:x,:y])`.
See **Details** for a discussion of these differences.
Expand Down Expand Up @@ -2424,7 +2424,7 @@ an intermediate data frame containing columns of `df` specified by `args`. The u
of `df` are thus determined by this intermediate data frame. This focus on `select` allows
for multiple arguments to be conveniently passed in the form of column names or transformations.
Users should be cautious when passing function arguments as vectors. E.g., `@distinct(df, $[:x,:y])`
Users should be cautious when passing function arguments as vectors. E.g., `@distinct(df, $DOLLAR[:x,:y])`
should be used instead of `@distinct(df, [:x,:y])` to avoid unexpected behaviors.
### Examples
Expand Down Expand Up @@ -2470,7 +2470,7 @@ function rdistinct!_helper(x, args...)
end

"""
rdistinct(d, args...)
rdistinct!(d, args...)
Row-wise version of `@distinct!`, i.e. all operations use `@byrow` by
default. See [`@distinct!`](@ref) for details.
Expand All @@ -2496,7 +2496,7 @@ julia> @rdistinct!(df, :x + :y)
│ Int64 Int64
─────┼──────────────
1 │ 1 5
````
```
"""
macro rdistinct!(d, args...)
esc(rdistinct!_helper(d, args...))
Expand Down

0 comments on commit aaaf194

Please sign in to comment.