You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a table using t = table(1:10, randn(10), rand(Bool, 10); names = [:x, :y, :z]) and tried to return Bool columns.
The following call should have returned only the z column but it is returning all three. Is this how it should be? Because this is not what select does.
julia>filter(row -> row.z ==false, t, select=Bool)
Table with 3 rows, 3 columns:
x y z
───────────────────
1-1.02158false2-1.14494false9-0.662703false
The select function returns only one Bool column
julia>select(t, Bool)
Table with 10 rows, 1 columns:
z
─────
falsefalsetruetruetruetruetruetruefalsetrue
Similarly, with Int:
julia>filter(row -> row.x ==1, t, select=Int)
Table with 1 rows, 3 columns:
x y z
──────────────────
1-1.02158false
I created a table using
t = table(1:10, randn(10), rand(Bool, 10); names = [:x, :y, :z])
and tried to returnBool
columns.The following call should have returned only the
z
column but it is returning all three. Is this how it should be? Because this is not whatselect
does.The
select
function returns only one Bool columnSimilarly, with
Int
:The section of code responsible:
IndexedTables.jl/src/selection.jl
Lines 241 to 245 in 2e97b48
I would propose the following patch so that the behaviour is consistent with
select()
. Not sure if this is the most efficient way.The text was updated successfully, but these errors were encountered: