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

MyriaRelation should support indexing #55

Open
dhutchis opened this issue Aug 17, 2016 · 2 comments
Open

MyriaRelation should support indexing #55

dhutchis opened this issue Aug 17, 2016 · 2 comments
Assignees

Comments

@dhutchis
Copy link
Member

dhutchis commented Aug 17, 2016

In the MyriaRelation class, there should be support for indexing. Indexing into a MyriaRelation is part of the example iPython notebook and seems like a very useful feature. Instead I see the following:

TypeError: 'MyriaRelation' object does not support indexing

for the example on the demo server

dataset = connection.datasets()[0]
MyriaRelation(dataset['relationKey'])[-1]

Removing the [-1] runs fine.

@shrjain
Copy link

shrjain commented Aug 17, 2016

It would be good to have indexing, but you can do the following for now maybe
MyriaRelation(dataset['relationKey']).to_dict()

@dhutchis
Copy link
Member Author

Yep, that and the rest of the examples work fine. So this is a small note. The indexing should be added or the example notebook should be changed.

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

No branches or pull requests

4 participants