Skip to content

Commit

Permalink
Extend Cols API (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored Sep 20, 2021
1 parent 92b0def commit 1b6c589
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DataAPI"
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
authors = ["quinnj <quinn.jacobd@gmail.com>"]
version = "1.8.0"
version = "1.9.0"

[compat]
julia = "1"
Expand Down
4 changes: 4 additions & 0 deletions src/DataAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@ 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`.
"""
struct Cols{T<:Tuple}
cols::T
Expand Down

2 comments on commit 1b6c589

@bkamins
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/45229

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.9.0 -m "<description of version>" 1b6c589f18e5d20d3eb7769e649a5d46d91cd9c2
git push origin v1.9.0

Please # to comment.