We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ccc07 commit ff0d799Copy full SHA for ff0d799
src/DataFrames.jl
@@ -31,7 +31,6 @@ export AbstractDataFrame,
31
Tables,
32
allowmissing!,
33
antijoin,
34
- by,
35
columnindex,
36
combine,
37
completecases,
@@ -72,9 +71,6 @@ export AbstractDataFrame,
72
71
unstack,
73
valuecols
74
75
-# TODO: remove these exports in year 2021
76
-export by, aggregate
77
-
78
if VERSION >= v"1.1.0-DEV.792"
79
import Base.eachcol, Base.eachrow
80
else
src/deprecated.jl
@@ -1,3 +1,5 @@
1
+export by, aggregate
2
+
3
by(args...; kwargs...) = throw(ArgumentError("by function was removed from DataFrames.jl. " *
4
"Use the `combine(groupby(...), ...)` or `combine(f, groupby(...))` instead."))
5
src/other/precompile.jl
@@ -1579,9 +1579,15 @@ function precompile(all=false)
1579
Base.precompile(Tuple{Reduce{typeof(max), Nothing, Nothing},Vector{Int},GroupedDataFrame{DataFrame}})
1580
Base.precompile(Tuple{Type{OnCol},Vector{String},Vararg{AbstractVector{T} where T, N} where N})
1581
1582
- combine(groupby(DataFrame(), []), identity)
1583
- innerjoin(DataFrame(v1=[]), DataFrame(v1=[]), on=:v1)
1584
- outerjoin(DataFrame(v1=[]), DataFrame(v1=[]), on=:v1)
+ for v in ([1, 2], [2, 1], [2, 2, 1]),
+ op in (identity, x -> string.(x), x -> PooledArrays.PooledArray(string.(x))),
+ on in (:v1, [:v1, :v2])
1585
+ df = DataFrame(v1=op(v), v2=v)
1586
+ combine(groupby(df, on), identity, :v1 => identity,
1587
+ :v2 => ByRow(identity), :v2 => sum)
1588
+ innerjoin(df, select(df, on), on=on)
1589
+ outerjoin(df, select(df, on), on=on)
1590
+ end
1591
end
1592
return nothing
1593
0 commit comments