We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2141c commit 48e363bCopy full SHA for 48e363b
src/tableselection.jl
@@ -43,7 +43,7 @@ Tables.columnnames(t::TableSelection) = t.names
43
44
function Tables.getcolumn(t::TableSelection, i::Int)
45
i > t.ncols && error("Table has no column with index $i.")
46
- Tables.getcolumn(t.cols, t.names[i])
+ Tables.getcolumn(t.cols, t.mapnames[t.names[i]])
47
end
48
49
function Tables.getcolumn(t::TableSelection, nm::Symbol)
test/tableselection.jl
@@ -36,6 +36,9 @@
36
@test Tables.getcolumn(s, :x) == t.c
37
@test Tables.getcolumn(s, :y) == t.d
38
@test Tables.getcolumn(s, :z) == t.f
39
+ @test Tables.getcolumn(s, 1) == t.c
40
+ @test Tables.getcolumn(s, 2) == t.d
41
+ @test Tables.getcolumn(s, 3) == t.f
42
# row table
select = [:a, :b, :e]
0 commit comments