diff --git a/Project.toml b/Project.toml index 987576b0..d642b415 100644 --- a/Project.toml +++ b/Project.toml @@ -4,10 +4,12 @@ version = "0.5.1" [deps] DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" +Reexport = "189a3867-3050-52da-a836-e630ba90ab69" Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" [compat] DataFrames = "0.21" +Reexport = "0.2" Tables = "1" julia = "1" diff --git a/src/DataFramesMeta.jl b/src/DataFramesMeta.jl index 44bc829c..2e262a88 100644 --- a/src/DataFramesMeta.jl +++ b/src/DataFramesMeta.jl @@ -1,6 +1,8 @@ module DataFramesMeta -using DataFrames, Tables +using Tables, Reexport + +@reexport using DataFrames # Basics: export @with, @where, @orderby, @transform, @by, @based_on, @select @@ -378,15 +380,6 @@ macro where(d, args...) end -############################################################################## -## -## select - select columns -## -############################################################################## - -select(d::AbstractDataFrame, arg) = d[!, arg] - - ############################################################################## ## ## @orderby diff --git a/test/dataframes.jl b/test/dataframes.jl index d24c3618..e7196495 100644 --- a/test/dataframes.jl +++ b/test/dataframes.jl @@ -177,8 +177,6 @@ end @test @select(df, body = cols(ir)).body == df.i @test @select(df, transform = cols(ir)).transform == df.i - @test DataFramesMeta.select(df, :i) == df.i - @test @select(df, n = 1).n == fill(1, nrow(df)) @test @select(df, cols("new_column") = :i).new_column == df.i