From 617c7ac96d7bdc51c0eea563338e6ed632f1b151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Mon, 20 Sep 2021 11:43:39 +0200 Subject: [PATCH 1/4] Extend Cols API --- src/DataAPI.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DataAPI.jl b/src/DataAPI.jl index d605a09..07d7b24 100644 --- a/src/DataAPI.jl +++ b/src/DataAPI.jl @@ -161,8 +161,13 @@ end """ Cols(cols...) + Cols(f::Function) Select the union of the selections in `cols`. If `cols == ()`, select no columns. + +If the only positional argument is a `Function` `f` then select the columns whose +names passed to the `f` predicate as strings return `true`. +As a special case if `:` is passed (the `Colon` function) select all columns. """ struct Cols{T<:Tuple} cols::T From e8ea2c236966adec46933c641a44df748453592d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Mon, 20 Sep 2021 11:44:28 +0200 Subject: [PATCH 2/4] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 09e53a7..f5ab2ae 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DataAPI" uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" authors = ["quinnj "] -version = "1.8.0" +version = "1.8.1" [compat] julia = "1" From 98a548aa13820678caa4bcaccb8f84d0abbb3bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Mon, 20 Sep 2021 11:44:43 +0200 Subject: [PATCH 3/4] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f5ab2ae..a9d0dde 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DataAPI" uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" authors = ["quinnj "] -version = "1.8.1" +version = "1.9.0" [compat] julia = "1" From 17f3ad4a58a66eebfbbbef15e081fc0efe06ed9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Mon, 20 Sep 2021 15:23:14 +0200 Subject: [PATCH 4/4] Update src/DataAPI.jl Co-authored-by: Milan Bouchet-Valat --- src/DataAPI.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DataAPI.jl b/src/DataAPI.jl index 07d7b24..f723983 100644 --- a/src/DataAPI.jl +++ b/src/DataAPI.jl @@ -167,7 +167,6 @@ Select the union of the selections in `cols`. If `cols == ()`, select no columns If the only positional argument is a `Function` `f` then select the columns whose names passed to the `f` predicate as strings return `true`. -As a special case if `:` is passed (the `Colon` function) select all columns. """ struct Cols{T<:Tuple} cols::T