Fix iterable interface expected by numpy
MEMBER
It's been fixed in this commit: https://github.com/huggingface/datasets/commit/549110e08238b3716a5904667095fb003acda54e

Basically #2246 broke querying an index with a simple iterable.
With the fix, it's again possible to use iterables and we can keep RandIter as it is.

Closing since the fix is already on master
2021-04-28T17:39:27Z
https://github.com/huggingface/datasets/pull/2270#issuecomment-828647296
https://api.github.com/repos/huggingface/datasets/issues/2270
MDEyOklzc3VlQ29tbWVudDgyODY0NzI5Ng==
https://api.github.com/repos/huggingface/datasets/issues/comments/828647296/reactions
2021-04-28T17:39:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/828647296
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
Numpy expects the old iterable interface with `__getitem__` instead of `__iter__`.