Skip to content

add cols kwarg to rename/rename! #2524

add cols kwarg to rename/rename!

add cols kwarg to rename/rename! #2524

Triggered via pull request September 21, 2023 13:47
Status Failure
Total duration 1h 28m 19s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 5 warnings
Documentation: src/abstractdataframe/abstractdataframe.jl#L312
doctest failure in ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/abstractdataframe.jl:312-368 ```jldoctest julia> df = DataFrame(i=1, x=2, y=3) 1×3 DataFrame Row │ i x y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 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 ─────┼───────────────────── 1 │ 1 2 3 julia> rename(df, :x => :y, :y => :x) 1×3 DataFrame Row │ i y x │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 julia> rename(df, [1 => :A, 2 => :X]) 1×3 DataFrame Row │ A X y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 julia> rename(df, Dict("i" => "A", "x" => "X")) 1×3 DataFrame Row │ A X y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 julia> rename(uppercase, df) 1×3 DataFrame Row │ I X Y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 julia> rename(uppercase, df, cols=contains('X')) 1×3 DataFrame Row │ i X y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 ``` Subexpression: rename(uppercase, df, cols=contains('X')) Evaluated output: 1×3 DataFrame Row │ i x y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 Expected output: 1×3 DataFrame Row │ i X y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3 diff = Warning: Diff output requires color. 1×3 DataFrame Row │ i X x y │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 1 2 3
Documentation
Process completed with exit code 1.
Julia nightly - ubuntu-latest - x64 - pull_request
Process completed with exit code 1.
Documentation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia nightly - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia 1.6 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia 1 - ubuntu-latest - x64 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Julia 1 - windows-latest - x86 - pull_request
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/