Skip to content

Commit 2c8eb64

Browse files
authored
Added rename method to docstring (#3362)
1 parent 453b446 commit 2c8eb64

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/abstractdataframe/abstractdataframe.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,14 @@ julia> df = DataFrame(i=1, x=2, y=3)
309309
─────┼─────────────────────
310310
1 │ 1 2 3
311311
312-
julia> rename(df, :i => :A, :x => :X)
312+
julia> rename(df, [:a, :b, :c])
313+
1×3 DataFrame
314+
Row │ a b c
315+
│ Int64 Int64 Int64
316+
─────┼─────────────────────
317+
1 │ 1 2 3
318+
319+
julia> rename(df, :i => "A", :x => "X")
313320
1×3 DataFrame
314321
Row │ A X y
315322
│ Int64 Int64 Int64

0 commit comments

Comments
 (0)