Add `Dataset.to_list` to the API
CONTRIBUTOR
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
2023-03-04T06:27:07Z
https://github.com/huggingface/datasets/issues/5606#issuecomment-1454539663
https://api.github.com/repos/huggingface/datasets/issues/5606
IC_kwDODunzps5WsoOP
https://api.github.com/repos/huggingface/datasets/issues/comments/1454539663/reactions
2023-03-04T06:27:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1454539663
https://avatars.githubusercontent.com/u/50972773?v=4
https://api.github.com/users/kyoto7250/events{/privacy}
https://api.github.com/users/kyoto7250/followers
https://api.github.com/users/kyoto7250/following{/other_user}
https://api.github.com/users/kyoto7250/gists{/gist_id}
https://github.com/kyoto7250
kyoto7250
MDQ6VXNlcjUwOTcyNzcz
https://api.github.com/users/kyoto7250/orgs
https://api.github.com/users/kyoto7250/received_events
https://api.github.com/users/kyoto7250/repos
https://api.github.com/users/kyoto7250/starred{/owner}{/repo}
https://api.github.com/users/kyoto7250/subscriptions
User
https://api.github.com/users/kyoto7250
public
COLLABORATOR
Yes, this is where `Dataset.to_dict` is defined.
2023-03-05T16:25:27Z
https://github.com/huggingface/datasets/issues/5606#issuecomment-1455137666
https://api.github.com/repos/huggingface/datasets/issues/5606
IC_kwDODunzps5Wu6OC
https://api.github.com/repos/huggingface/datasets/issues/comments/1455137666/reactions
2023-03-05T16:25:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1455137666
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
CONTRIBUTOR
#self-assign
2023-03-06T11:33:07Z
https://github.com/huggingface/datasets/issues/5606#issuecomment-1455967252
https://api.github.com/repos/huggingface/datasets/issues/5606
IC_kwDODunzps5WyEwU
https://api.github.com/repos/huggingface/datasets/issues/comments/1455967252/reactions
2023-03-06T11:33:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1455967252
https://avatars.githubusercontent.com/u/50972773?v=4
https://api.github.com/users/kyoto7250/events{/privacy}
https://api.github.com/users/kyoto7250/followers
https://api.github.com/users/kyoto7250/following{/other_user}
https://api.github.com/users/kyoto7250/gists{/gist_id}
https://github.com/kyoto7250
kyoto7250
MDQ6VXNlcjUwOTcyNzcz
https://api.github.com/users/kyoto7250/orgs
https://api.github.com/users/kyoto7250/received_events
https://api.github.com/users/kyoto7250/repos
https://api.github.com/users/kyoto7250/starred{/owner}{/repo}
https://api.github.com/users/kyoto7250/subscriptions
User
https://api.github.com/users/kyoto7250
public
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`.