Fix multi-column select! #404 (#405) #546
Annotations
8 errors, 11 warnings, and 1 notice
build:
src/macros.jl#L2532
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:2532-2552
```jldoctest
julia> using DataFramesMeta;
julia> df = DataFrame(x = 1:10, y = 10:-1:1);
julia> @distinct(df, :x .+ :y)
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌβββββββββββββββ
1 β 1 10
julia> @distinct df begin
:x .+ :y
end
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌβββββββββββββββ
1 β 1 10
```
Subexpression:
@distinct(df, :x .+ :y)
Evaluated output:
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 1 10
Expected output:
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌβββββββββββββββ
1 β 1 10
diff =
Warning: Diff output requires color.
1Γ2 DataFrame
Row β x y
y
β Int64 Int64
ββββββΌβββββββββββββββ
Int64
ββββββΌββββββββββββββ
1 β 1 1 10
|
build:
src/macros.jl#L2532
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:2532-2552
```jldoctest
julia> using DataFramesMeta;
julia> df = DataFrame(x = 1:10, y = 10:-1:1);
julia> @distinct(df, :x .+ :y)
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌβββββββββββββββ
1 β 1 10
julia> @distinct df begin
:x .+ :y
end
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌβββββββββββββββ
1 β 1 10
```
Subexpression:
@distinct df begin
:x .+ :y
end
Evaluated output:
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 1 10
Expected output:
1Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌβββββββββββββββ
1 β 1 10
diff =
Warning: Diff output requires color.
1Γ2 DataFrame
Row β x y
y
β Int64 Int64
ββββββΌβββββββββββββββ
Int64
ββββββΌββββββββββββββ
1 β 1 1 10
|
build:
src/macros.jl#L978
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:978-1008
```jldoctest
julia> using DataFramesMeta
julia> df = DataFrame(A=1:5, B=["apple", "pear", "apple", "orange", "pear"])
5Γ2 DataFrame
Row β A B
β Int64 String
ββββββΌβββββββββββββββ
1 β 1 apple
2 β 2 pear
3 β 3 apple
4 β 4 orange
5 β 5 pear
julia> @rsubset df :A > 3
2Γ2 DataFrame
Row β A B
β Int64 String
ββββββΌβββββββββββββββ
1 β 4 orange
2 β 5 pear
julia> @rsubset df :A > 3 || :B == "pear"
3Γ2 DataFrame
Row β A B
β Int64 String
ββββββΌβββββββββββββββ
1 β 2 pear
2 β 4 orange
3 β 5 pear
```
Subexpression:
@rsubset df :A > 3 || :B == "pear"
Evaluated output:
3Γ2 DataFrame
Row β A B
β Int64 String
ββββββΌβββββββββββββββ
1 β 2 pear
2 β 4 orange
3 β 5 pear
Expected output:
3Γ2 DataFrame
Row β A B
β Int64 String
ββββββΌβββββββββββββββ
1 β 2 pear
2 β 4 orange
3 β 5 pear
diff =
Warning: Diff output requires color.
3Γ2 DataFrame
DataFrame
Row β A B
B
β Int64 String
ββββββΌβββββββββββββββ
String
ββββββΌβββββββββββββββ
1 β 2 pear
pear
2 β 4 orange
orange
3 β 5 pear
|
build:
src/macros.jl#L862
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:862-953
```jldoctest
julia> using DataFramesMeta, Statistics
julia> df = DataFrame(x = 1:3, y = [2, 1, 2]);
julia> globalvar = [2, 1, 0];
julia> @subset(df, :x .> 1)
2Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 2 1
2 β 3 2
julia> @subset(df, :x .> globalvar)
2Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 2 1
2 β 3 2
julia> @subset df begin
:x .> globalvar
:y .== 3
end
0Γ2 DataFrame
julia> df = DataFrame(n = 1:20, x = [3, 3, 3, 3, 1, 1, 1, 2, 1, 1,
2, 1, 1, 2, 2, 2, 3, 1, 1, 2]);
julia> g = groupby(df, :x);
julia> @subset(g, :n .> mean(:n))
8Γ2 DataFrame
Row β n x
β Int64 Int64
ββββββΌββββββββββββββ
1 β 12 1
2 β 13 1
3 β 15 2
4 β 16 2
5 β 17 3
6 β 18 1
7 β 19 1
8 β 20 2
julia> @subset g begin
:n .> mean(:n)
:n .< 20
end
7Γ2 DataFrame
Row β n x
β Int64 Int64
ββββββΌββββββββββββββ
1 β 12 1
2 β 13 1
3 β 15 2
4 β 16 2
5 β 17 3
6 β 18 1
7 β 19 1
julia> df = DataFrame(a = [1, 2, missing], b = ["x", "y", missing]);
julia> @subset(df, :a .== 1)
1Γ2 DataFrame
Row β a b
β Int64? String?
ββββββΌβββββββββββββββββ
1 β 1 x
julia> @subset(df, :a .< 3; view = true)
2Γ2 SubDataFrame
Row β a b
β Int64? String?
ββββββΌβββββββββββββββββ
1 β 1 x
2 β 2 y
julia> @subset df begin
:a .< 3
@kwarg view = true
end
2Γ2 SubDataFrame
Row β a b
β Int64? String?
ββββββΌβββββββββββββββββ
1 β 1 x
2 β 2 y
```
Subexpression:
@subset df begin
:x .> globalvar
:y .== 3
end
Evaluated output:
0Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββ΄ββββββββββββββ
Expected output:
0Γ2 DataFrame
diff =
Warning: Diff output requires color.
0Γ2 DataFrameDataFrame
Row β x y
β Int64 Int64
ββββββ΄ββββββββββββββ
|
build:
src/macros.jl#L1409
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:1409-1446
```jldoctest
julia> using DataFramesMeta
julia> df = DataFrame(x = [8,8,-8,7,7,-7], y = [-1, 1, -2, 2, -3, 3])
6Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 8 -1
2 β 8 1
3 β -8 -2
4 β 7 2
5 β 7 -3
6 β -7 3
julia> @rorderby df abs(:x) (:x * :y^3)
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 7 -3
2 β -7 3
3 β 7 2
4 β 8 -1
5 β 8 1
6 β -8 -2
julia> @rorderby df :y == 2 ? -:x : :y
6Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 7 2
2 β 7 -3
3 β -8 -2
4 β 8 -1
5 β 8 1
6 β -7 3
```
Subexpression:
@rorderby df abs(:x) (:x * :y^3)
Evaluated output:
6Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 7 -3
2 β -7 3
3 β 7 2
4 β 8 -1
5 β 8 1
6 β -8 -2
Expected output:
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 7 -3
2 β -7 3
3 β 7 2
4 β 8 -1
5 β 8 1
6 β -8 -2
diff =
Warning: Diff output requires color.
6Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 7 -3
2 β -7 3
3 β 7 2
4 β 8 -1
5 β 8 1
6 β -8 -2
|
build:
src/macros.jl#L1130
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:1130-1204
```jldoctest
julia> using DataFramesMeta, Statistics
julia> df = DataFrame(x = 1:3, y = [2, 1, 2]);
julia> globalvar = [2, 1, 0];
julia> @subset!(copy(df), :x .> 1)
2Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 2 1
2 β 3 2
julia> @subset!(copy(df), :x .> globalvar)
2Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββΌββββββββββββββ
1 β 2 1
2 β 3 2
julia> @subset! copy(df) begin
:x .> globalvar
:y .== 3
end
0Γ2 DataFrame
julia> df = DataFrame(n = 1:20, x = [3, 3, 3, 3, 1, 1, 1, 2, 1, 1,
2, 1, 1, 2, 2, 2, 3, 1, 1, 2]);
julia> g = groupby(copy(df), :x);
julia> @subset!(g, :n .> mean(:n))
8Γ2 DataFrame
Row β n x
β Int64 Int64
ββββββΌββββββββββββββ
1 β 12 1
2 β 13 1
3 β 15 2
4 β 16 2
5 β 17 3
6 β 18 1
7 β 19 1
8 β 20 2
julia> g = groupby(copy(df), :x);
julia> @subset! g begin
:n .> mean(:n)
:n .< 20
end
7Γ2 DataFrame
Row β n x
β Int64 Int64
ββββββΌββββββββββββββ
1 β 12 1
2 β 13 1
3 β 15 2
4 β 16 2
5 β 17 3
6 β 18 1
7 β 19 1
julia> d = DataFrame(a = [1, 2, missing], b = ["x", "y", missing]);
julia> @subset!(d, :a .== 1)
1Γ2 DataFrame
Row β a b
β Int64? String?
ββββββΌβββββββββββββββββ
1 β 1 x
```
Subexpression:
@subset! copy(df) begin
:x .> globalvar
:y .== 3
end
Evaluated output:
0Γ2 DataFrame
Row β x y
β Int64 Int64
ββββββ΄ββββββββββββββ
Expected output:
0Γ2 DataFrame
diff =
Warning: Diff output requires color.
0Γ2 DataFrameDataFrame
Row β x y
β Int64 Int64
ββββββ΄ββββββββββββββ
|
build:
src/macros.jl#L1314
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:1314-1386
```jldoctest
julia> using DataFramesMeta, Statistics
julia> d = DataFrame(x = [3, 3, 3, 2, 1, 1, 1, 2, 1, 1], n = 1:10,
c = ["a", "c", "b", "e", "d", "g", "f", "i", "j", "h"]);
julia> @orderby(d, -:n)
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 10 h
2 β 1 9 j
3 β 2 8 i
4 β 1 7 f
5 β 1 6 g
6 β 1 5 d
7 β 2 4 e
8 β 3 3 b
9 β 3 2 c
10 β 3 1 a
julia> @orderby(d, invperm(sortperm(:c, rev = true)))
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 9 j
2 β 2 8 i
3 β 1 10 h
4 β 1 6 g
5 β 1 7 f
6 β 2 4 e
7 β 1 5 d
8 β 3 2 c
9 β 3 3 b
10 β 3 1 a
julia> @orderby d begin
:x
abs.(:n .- mean(:n))
end
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
2 β 1 6 f
3 β 1 7 g
4 β 1 9 i
5 β 1 10 j
6 β 2 4 d
7 β 2 8 h
8 β 3 3 c
9 β 3 2 b
10 β 3 1 a
julia> @orderby d @byrow :x^2
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
2 β 1 6 f
3 β 1 7 g
4 β 1 9 i
5 β 1 10 j
6 β 2 4 d
7 β 2 8 h
8 β 3 1 a
9 β 3 2 b
10 β 3 3 c
```
Subexpression:
@orderby d begin
:x
abs.(:n .- mean(:n))
end
Evaluated output:
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 d
2 β 1 6 g
3 β 1 7 f
4 β 1 9 j
5 β 1 10 h
6 β 2 4 e
7 β 2 8 i
8 β 3 3 b
9 β 3 2 c
10 β 3 1 a
Expected output:
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
2 β 1 6 f
3 β 1 7 g
4 β 1 9 i
5 β 1 10 j
6 β 2 4 d
7 β 2 8 h
8 β 3 3 c
9 β 3 2 b
10 β 3 1 a
diff =
Warning: Diff output requires color.
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
d
2 β 1 6 f
g
3 β 1 7 g
f
4 β 1 9 i
j
5 β 1 10 j
h
6 β 2 4 d
e
7 β 2 8 h
i
8 β 3 3 c
b
9 β 3 2 b
c
10 β 3 1 a
|
build:
src/macros.jl#L1314
doctest failure in ~/work/DataFramesMeta.jl/DataFramesMeta.jl/src/macros.jl:1314-1386
```jldoctest
julia> using DataFramesMeta, Statistics
julia> d = DataFrame(x = [3, 3, 3, 2, 1, 1, 1, 2, 1, 1], n = 1:10,
c = ["a", "c", "b", "e", "d", "g", "f", "i", "j", "h"]);
julia> @orderby(d, -:n)
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 10 h
2 β 1 9 j
3 β 2 8 i
4 β 1 7 f
5 β 1 6 g
6 β 1 5 d
7 β 2 4 e
8 β 3 3 b
9 β 3 2 c
10 β 3 1 a
julia> @orderby(d, invperm(sortperm(:c, rev = true)))
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 9 j
2 β 2 8 i
3 β 1 10 h
4 β 1 6 g
5 β 1 7 f
6 β 2 4 e
7 β 1 5 d
8 β 3 2 c
9 β 3 3 b
10 β 3 1 a
julia> @orderby d begin
:x
abs.(:n .- mean(:n))
end
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
2 β 1 6 f
3 β 1 7 g
4 β 1 9 i
5 β 1 10 j
6 β 2 4 d
7 β 2 8 h
8 β 3 3 c
9 β 3 2 b
10 β 3 1 a
julia> @orderby d @byrow :x^2
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
2 β 1 6 f
3 β 1 7 g
4 β 1 9 i
5 β 1 10 j
6 β 2 4 d
7 β 2 8 h
8 β 3 1 a
9 β 3 2 b
10 β 3 3 c
```
Subexpression:
@orderby d @byrow :x^2
Evaluated output:
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 d
2 β 1 6 g
3 β 1 7 f
4 β 1 9 j
5 β 1 10 h
6 β 2 4 e
7 β 2 8 i
8 β 3 1 a
9 β 3 2 c
10 β 3 3 b
Expected output:
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
2 β 1 6 f
3 β 1 7 g
4 β 1 9 i
5 β 1 10 j
6 β 2 4 d
7 β 2 8 h
8 β 3 1 a
9 β 3 2 b
10 β 3 3 c
diff =
Warning: Diff output requires color.
10Γ3 DataFrame
Row β x n c
β Int64 Int64 String
ββββββΌββββββββββββββββββββββ
1 β 1 5 e
d
2 β 1 6 f
g
3 β 1 7 g
f
4 β 1 9 i
j
5 β 1 10 j
h
6 β 2 4 d
e
7 β 2 8 h
i
8 β 3 1 a
9 β 3 2 b
c
10 β 3 3 cb
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
6 docstrings not included in the manual:
DataFramesMeta.check_macro_flags_consistency :: Tuple{Any}
DataFramesMeta.create_args_vector! :: Tuple{Any, Any}
DataFramesMeta.rename_kw_to_pair :: Tuple{Expr}
DataFramesMeta.get_column_expr :: Tuple{Any}
DataFramesMeta.get_source_fun :: Tuple{Any}
DataFramesMeta.@col :: Tuple{Any}
These are docstrings in the checked modules (configured with the modules keyword)
that are not included in @docs or @autodocs blocks.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `stable` and linking `stable` to `v0.15.3`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.15` and linking `v0.15` to `v0.15.3`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.14` and linking `v0.14` to `v0.14.2`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.13` and linking `v0.13` to `v0.13.0`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.11` and linking `v0.11` to `v0.11.0`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.10` and linking `v0.10` to `v0.10.0`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.9` and linking `v0.9` to `v0.9.1`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.8` and linking `v0.8` to `v0.8.0`.
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Documenter.jl#L800
removing `v0.7` and linking `v0.7` to `v0.7.1`.
|
build
Unexpected input(s) 'version', valid inputs are ['prefix', 'install-package']
|
[julia-buildpkg] Caching of the julia depot was not detected
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`
|