We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view
Example:
julia> nt = (a=[1,2,3], b=[4,5,6]) (a = [1, 2, 3], b = [4, 5, 6]) julia> x2 = Tables.subset(nt, 1, view=true) (a = 1, b = 4) julia> x1 = Tables.subset(nt, 1, view=false) (a = 1, b = 4) julia> nt.a[1]=100 100 julia> x2 (a = 1, b = 4) julia> x1 (a = 1, b = 4)
vs
julia> df = DataFrame(a=[1,2,3], b=[4,5,6]) 3×2 DataFrame Row │ a b │ Int64 Int64 ─────┼────────────── 1 │ 1 4 2 │ 2 5 3 │ 3 6 julia> x1 = Tables.subset(df, 1, view=false) Tables.ColumnsRow{DataFrames.DataFrameColumns{DataFrame}}: (a = 1, b = 4) julia> x2 = Tables.subset(df, 1, view=true) Tables.ColumnsRow{DataFrames.DataFrameColumns{DataFrame}}: (a = 1, b = 4) julia> df.a[1] = 100 100 julia> x1 Tables.ColumnsRow{DataFrames.DataFrameColumns{DataFrame}}: (a = 100, b = 4) julia> x2 Tables.ColumnsRow{DataFrames.DataFrameColumns{DataFrame}}: (a = 100, b = 4)
So we see that view kwarg when returning row is not respected and is not handled consistently.
The text was updated successfully, but these errors were encountered:
See JuliaData/DataFrames.jl#3158 for what I believe is a concrete implementation of Tables.subset (an example for data frame)
Tables.subset
Sorry, something went wrong.
No branches or pull requests
Example:
vs
So we see that
view
kwarg when returning row is not respected and is not handled consistently.The text was updated successfully, but these errors were encountered: