-
Notifications
You must be signed in to change notification settings - Fork 25
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
Issue with Tables.getcolumn by index #86
Comments
@quinnj any advice on this one? |
In the official "usage" of the Tables.jl interface, you're only guaranteed to be able to call |
I see. Is it good practice to extend some of these methods and opt into common behaviour? Or is it preferable to let users use the |
All up to you; users of the Tables.jl API just need to make sure they follow the guidelines, which admittedly aren't the absolute most convenient form, but are really meant for "sink" authors in the end. |
Accessing columns through
Tables.getcolumn(table, name::Symbol)
works as expected, but usingTables.getcolumn(table, ind::Int)
does not.Setup:
Expected behaviour:
This works with simple named tuples of vectors, as well as DataFrames.
Observed behaviour:
However, using index 1 returns all columns which is not useful:
Accessing by column name
:a
or:b
works as expected.Thanks!
The text was updated successfully, but these errors were encountered: