Skip to content

add cols to mapcols and mapcols! #2560

add cols to mapcols and mapcols!

add cols to mapcols and mapcols! #2560

Triggered via pull request October 10, 2023 07:19
@bkaminsbkamins
synchronize #3386
bk/mapcols
Status Failure
Total duration 1h 46m 22s
Artifacts

ci.yml

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

Annotations

8 errors and 5 warnings
Documentation: src/abstractdataframe/iteration.jl#L508
doctest failure in ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:508-542 ```jldoctest julia> df = DataFrame(x=1:4, y=11:14) 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 11 2 │ 2 12 3 │ 3 13 4 │ 4 14 julia> mapcols!(x -> x.^2, df); julia> df 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 4 144 3 │ 9 169 4 │ 16 196 julia> mapcols!(x -> 2 * x, df, cols="x"); julia> df 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 2 121 2 │ 8 144 3 │ 18 169 4 │ 32 196 ``` Subexpression: mapcols!(x -> 2 * x, df, cols="x"); Evaluated output: ERROR: UndefVarError: `name` not defined Stacktrace: [1] mapcols!(f::var"#3#4", df::DataFrame; cols::String) @ DataFrames ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:554 [2] top-level scope @ none:1 Expected output: diff = Warning: Diff output requires color. ERROR: UndefVarError: `name` not defined Stacktrace: [1] mapcols!(f::var"#3#4", df::DataFrame; cols::String) @ DataFrames ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:554 [2] top-level scope @ none:1
Documentation: src/abstractdataframe/iteration.jl#L508
doctest failure in ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:508-542 ```jldoctest julia> df = DataFrame(x=1:4, y=11:14) 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 11 2 │ 2 12 3 │ 3 13 4 │ 4 14 julia> mapcols!(x -> x.^2, df); julia> df 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 4 144 3 │ 9 169 4 │ 16 196 julia> mapcols!(x -> 2 * x, df, cols="x"); julia> df 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 2 121 2 │ 8 144 3 │ 18 169 4 │ 32 196 ``` Subexpression: df Evaluated output: 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 4 144 3 │ 9 169 4 │ 16 196 Expected output: 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 2 121 2 │ 8 144 3 │ 18 169 4 │ 32 196 diff = Warning: Diff output requires color. 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 2 1 121 2 │ 8 4 144 3 │ 18 │ 9 169 4 │ 32 16 196
Documentation: src/abstractdataframe/iteration.jl#L427
doctest failure in ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:427-457 ```jldoctest julia> df = DataFrame(x=1:4, y=11:14) 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 11 2 │ 2 12 3 │ 3 13 4 │ 4 14 julia> mapcols(x -> x.^2, df) 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 4 144 3 │ 9 169 4 │ 16 196 julia> mapcols(x -> x.^2, df, cols="y") 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 2 144 3 │ 3 169 4 │ 4 196 ``` Subexpression: mapcols(x -> x.^2, df, cols="y") Evaluated output: ERROR: UndefVarError: `name` not defined Stacktrace: [1] mapcols(f::var"#3#4", df::DataFrame; cols::String) @ DataFrames ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:464 [2] top-level scope @ none:1 Expected output: 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 2 144 3 │ 3 169 4 │ 4 196 diff = Warning: Diff output requires color. 4×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ 1 121 2 │ 2 144 3 │ 3 169 4 │ 4 196ERROR: UndefVarError: `name` not defined Stacktrace: [1] mapcols(f::var"#3#4", df::DataFrame; cols::String) @ DataFrames ~/work/DataFrames.jl/DataFrames.jl/src/abstractdataframe/iteration.jl:464 [2] top-level scope @ none:1
Documentation
Process completed with exit code 1.
Julia 1.6 - ubuntu-latest - x64 - pull_request
Process completed with exit code 1.
Julia 1 - ubuntu-latest - x64 - pull_request
Process completed with exit code 1.
Julia nightly - ubuntu-latest - x64 - pull_request
Process completed with exit code 1.
Julia 1 - windows-latest - x86 - 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 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. 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. 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 - windows-latest - x86 - 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/