Skip to content

Commit

Permalink
Added rename method to docstring (#3362)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanrboyer committed Jul 19, 2023
1 parent 453b446 commit 2c8eb64
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,14 @@ julia> df = DataFrame(i=1, x=2, y=3)
─────┼─────────────────────
1 │ 1 2 3
julia> rename(df, :i => :A, :x => :X)
julia> rename(df, [:a, :b, :c])
1×3 DataFrame
Row │ a b c
│ Int64 Int64 Int64
─────┼─────────────────────
1 │ 1 2 3
julia> rename(df, :i => "A", :x => "X")
1×3 DataFrame
Row │ A X y
│ Int64 Int64 Int64
Expand Down

0 comments on commit 2c8eb64

Please sign in to comment.