Skip to content
New issue

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

What does the method Tables.subset(table, inds::Vector{Int}) return exactly? #318

Open
eliascarv opened this issue Nov 21, 2022 · 0 comments

Comments

@eliascarv
Copy link

eliascarv commented Nov 21, 2022

I'm not sure if this method returns a table, a AbstractColumns object or a row iterator, because the documentation doesn't make that very clear.

For example:

# Code 1:
table = #code...
inds = [1, 2, 3]
subset = Tables.subset(table, inds)
column = Tables.getcolumn(subset, :colname)

# Code 2:
table = #code...
inds = [1, 2, 3]
subset = Tables.subset(table, inds)
cols = Tables.columns(subset)
column = Tables.getcolumn(cols, :colname)

In that case what would be the correct code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant