Add `Dataset.to_list` to the API
{'login': 'mariosasko', 'id': 47462742, 'node_id': 'MDQ6VXNlcjQ3NDYyNzQy', 'avatar_url': 'https://avatars.githubusercontent.com/u/47462742?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/mariosasko', 'html_url': 'https://github.com/mariosasko', 'followers_url': 'https://api.github.com/users/mariosasko/followers', 'following_url': 'https://api.github.com/users/mariosasko/following{/other_user}', 'gists_url': 'https://api.github.com/users/mariosasko/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/mariosasko/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/mariosasko/subscriptions', 'organizations_url': 'https://api.github.com/users/mariosasko/orgs', 'repos_url': 'https://api.github.com/users/mariosasko/repos', 'events_url': 'https://api.github.com/users/mariosasko/events{/privacy}', 'received_events_url': 'https://api.github.com/users/mariosasko/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}, {'id': 1935892877, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODc3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/good%20first%20issue', 'name': 'good first issue', 'color': '7057ff', 'default': True, 'description': 'Good for newcomers'}]
{'login': 'kyoto7250', 'id': 50972773, 'node_id': 'MDQ6VXNlcjUwOTcyNzcz', 'avatar_url': 'https://avatars.githubusercontent.com/u/50972773?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/kyoto7250', 'html_url': 'https://github.com/kyoto7250', 'followers_url': 'https://api.github.com/users/kyoto7250/followers', 'following_url': 'https://api.github.com/users/kyoto7250/following{/other_user}', 'gists_url': 'https://api.github.com/users/kyoto7250/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/kyoto7250/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/kyoto7250/subscriptions', 'organizations_url': 'https://api.github.com/users/kyoto7250/orgs', 'repos_url': 'https://api.github.com/users/kyoto7250/repos', 'events_url': 'https://api.github.com/users/kyoto7250/events{/privacy}', 'received_events_url': 'https://api.github.com/users/kyoto7250/received_events', 'type': 'User', 'site_admin': False}
[{'login': 'kyoto7250', 'id': 50972773, 'node_id': 'MDQ6VXNlcjUwOTcyNzcz', 'avatar_url': 'https://avatars.githubusercontent.com/u/50972773?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/kyoto7250', 'html_url': 'https://github.com/kyoto7250', 'followers_url': 'https://api.github.com/users/kyoto7250/followers', 'following_url': 'https://api.github.com/users/kyoto7250/following{/other_user}', 'gists_url': 'https://api.github.com/users/kyoto7250/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/kyoto7250/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/kyoto7250/subscriptions', 'organizations_url': 'https://api.github.com/users/kyoto7250/orgs', 'repos_url': 'https://api.github.com/users/kyoto7250/repos', 'events_url': 'https://api.github.com/users/kyoto7250/events{/privacy}', 'received_events_url': 'https://api.github.com/users/kyoto7250/received_events', 'type': 'User', 'site_admin': False}]
Hello, I have an interest in this issue.
Is the `Dataset.to_dict` you are describing correct in the code here?

https://github.com/huggingface/datasets/blob/35b789e8f6826b6b5a6b48fcc2416c890a1f326a/src/datasets/arrow_dataset.py#L4633-L4667 Yes, this is where `Dataset.to_dict` is defined. #self-assign
Since there is `Dataset.from_list` in the API, we should also add `Dataset.to_list` to be consistent.
 
Regarding the implementation, we can re-use `Dataset.to_dict`'s code and replace the `to_pydict` calls with `to_pylist`.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5606/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}