Skip to content

Commit 08c1f64

Browse files
committed
Update selection.jl
1 parent ec147df commit 08c1f64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/abstractdataset/selection.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function normalize_select(idx, @nospecialize(cols...))
33
for i in 1:length(cols)
44
normalize_select!(selected_cols, idx, cols[i])
55
end
6-
unique!(selected_cols)
6+
selected_cols
77
end
88
function normalize_select!(selected_cols, idx, cols::ColumnIndex)
99
push!(selected_cols[1], idx[cols])
@@ -27,7 +27,7 @@ end
2727
"""
2828
select(ds, args...)
2929
30-
Select columns of `ds` based on `args...`. `args` can be any column selector: column index, column Name, `:`, `Between`, `Not`, Vector of column indices or column names, a regular expression.
30+
Select columns of `ds` based on `args...`. `args` can be any column selector: column index, column Name, `:`, `Between`, `Not`, Vector of column indices or column names, a regular expression. When columns are wrapped in `Not`, they will not appear in the output data set.
3131
3232
It makes a copy of `ds`. See [`select!`](@ref) if an in-place modification is desired.
3333
@@ -110,7 +110,7 @@ end
110110
"""
111111
select!(ds, args...)
112112
113-
Select columns of `ds` based on `args...`. `args` can be any column selector: column index, column Name, `:`, `Between`, `Not`, Vector of column indices or column names, a regular expression.
113+
Select columns of `ds` based on `args...`. `args` can be any column selector: column index, column Name, `:`, `Between`, `Not`, Vector of column indices or column names, a regular expression. When columns are wrapped in `Not`, they will not appear in the output data set.
114114
115115
It modifies the data set in-place. See [`select`](@ref) if a copy of selected columns is desired.
116116
"""

0 commit comments

Comments
 (0)