JuliaData / DataAPI.jl

A data-focused namespace for packages to share functions
Other
33 stars 13 forks source link

clarify Between #49

Closed JeffreySarnoff closed 2 years ago

JeffreySarnoff commented 2 years ago

as given:

"""
    Between(first, last)

Select the columns between `first` and `last` from a table.
"""
struct Between{T1 <: Union{Int, Symbol}, T2 <: Union{Int, Symbol}}
    first::T1
    last::T2
end

if you intend "through", add e.g. first and last (including both) from a table if you intend "within", add e.g. first and last (excluding both) from a table

bkamins commented 2 years ago

Fixed in https://github.com/JuliaData/DataAPI.jl/commit/5c927b646360cc4d36c575cf9f98e6bada698419. Thank you!