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

istable of a Matrix of Named tuples is true - I think it should be false. #302

Open
kilminster opened this issue Sep 20, 2022 · 1 comment

Comments

@kilminster
Copy link

After #198 I find that:

using Tables

a=[(a=i,b=j) for i=1:5,j=1:5]
Tables.istable(a)

returns true, while if I do Tables.rows(a), I get an error saying that a is not a table.

If above, I change the definition to be a matrix of ordinary tuples, ie:

a=[(i,j) for i=1:5,j=1:5]

I get that Tables.istable(a) is now false, as expected.

(I'm using the latest release of Julia - 1.8.1.)

@bkamins
Copy link
Member

bkamins commented Sep 20, 2022

@quinnj it is an issue with TableTraits.isiterabletable because matrices are iterable. Do you know what is the current use of TableTraits.jl?

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

2 participants