Allow the selection of multiple columns at once
NONE
Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. 
Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
2021-07-18T15:12:24Z
https://github.com/huggingface/datasets/issues/2655#issuecomment-882071809
https://api.github.com/repos/huggingface/datasets/issues/2655
IC_kwDODunzps40k1kB
https://api.github.com/repos/huggingface/datasets/issues/comments/882071809/reactions
2021-07-18T15:12:24Z
https://api.github.com/repos/huggingface/datasets/issues/comments/882071809
https://avatars.githubusercontent.com/u/25790092?v=4
https://api.github.com/users/Ap1075/events{/privacy}
https://api.github.com/users/Ap1075/followers
https://api.github.com/users/Ap1075/following{/other_user}
https://api.github.com/users/Ap1075/gists{/gist_id}
https://github.com/Ap1075
Ap1075
MDQ6VXNlcjI1NzkwMDky
https://api.github.com/users/Ap1075/orgs
https://api.github.com/users/Ap1075/received_events
https://api.github.com/users/Ap1075/repos
https://api.github.com/users/Ap1075/starred{/owner}{/repo}
https://api.github.com/users/Ap1075/subscriptions
User
https://api.github.com/users/Ap1075
public
CONTRIBUTOR
Hi! Sorry for the delay.

In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example.

My issue is that my dataset is too big for memory if I load everything into pandas.
2021-07-23T15:40:57Z
https://github.com/huggingface/datasets/issues/2655#issuecomment-885726963
https://api.github.com/repos/huggingface/datasets/issues/2655
IC_kwDODunzps40yx7z
https://api.github.com/repos/huggingface/datasets/issues/comments/885726963/reactions
2021-07-23T15:40:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/885726963
https://avatars.githubusercontent.com/u/8976546?v=4
https://api.github.com/users/Dref360/events{/privacy}
https://api.github.com/users/Dref360/followers
https://api.github.com/users/Dref360/following{/other_user}
https://api.github.com/users/Dref360/gists{/gist_id}
https://github.com/Dref360
Dref360
MDQ6VXNlcjg5NzY1NDY=
https://api.github.com/users/Dref360/orgs
https://api.github.com/users/Dref360/received_events
https://api.github.com/users/Dref360/repos
https://api.github.com/users/Dref360/starred{/owner}{/repo}
https://api.github.com/users/Dref360/subscriptions
User
https://api.github.com/users/Dref360
public
NONE
Hello - any update on this? Thank you.
2024-01-09T05:51:55Z
https://github.com/huggingface/datasets/issues/2655#issuecomment-1882451914
https://api.github.com/repos/huggingface/datasets/issues/2655
IC_kwDODunzps5wM-_K
https://api.github.com/repos/huggingface/datasets/issues/comments/1882451914/reactions
2024-01-09T05:51:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1882451914
https://avatars.githubusercontent.com/u/7974289?v=4
https://api.github.com/users/dusadvarshit/events{/privacy}
https://api.github.com/users/dusadvarshit/followers
https://api.github.com/users/dusadvarshit/following{/other_user}
https://api.github.com/users/dusadvarshit/gists{/gist_id}
https://github.com/dusadvarshit
dusadvarshit
MDQ6VXNlcjc5NzQyODk=
https://api.github.com/users/dusadvarshit/orgs
https://api.github.com/users/dusadvarshit/received_events
https://api.github.com/users/dusadvarshit/repos
https://api.github.com/users/dusadvarshit/starred{/owner}{/repo}
https://api.github.com/users/dusadvarshit/subscriptions
User
https://api.github.com/users/dusadvarshit
public
MEMBER
Please note that you could use the method `Dataset.select_columns`: https://huggingface.co/docs/datasets/v2.15.0/en/package_reference/main_classes#datasets.Dataset.select_columns
2024-01-09T07:46:28Z
https://github.com/huggingface/datasets/issues/2655#issuecomment-1882556518
https://api.github.com/repos/huggingface/datasets/issues/2655
IC_kwDODunzps5wNYhm
https://api.github.com/repos/huggingface/datasets/issues/comments/1882556518/reactions
2024-01-09T07:46:28Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1882556518
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
CONTRIBUTOR
Thank you!
2024-01-09T15:11:26Z
https://github.com/huggingface/datasets/issues/2655#issuecomment-1883232378
https://api.github.com/repos/huggingface/datasets/issues/2655
IC_kwDODunzps5wP9h6
https://api.github.com/repos/huggingface/datasets/issues/comments/1883232378/reactions
2024-01-09T15:11:26Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1883232378
https://avatars.githubusercontent.com/u/8976546?v=4
https://api.github.com/users/Dref360/events{/privacy}
https://api.github.com/users/Dref360/followers
https://api.github.com/users/Dref360/following{/other_user}
https://api.github.com/users/Dref360/gists{/gist_id}
https://github.com/Dref360
Dref360
MDQ6VXNlcjg5NzY1NDY=
https://api.github.com/users/Dref360/orgs
https://api.github.com/users/Dref360/received_events
https://api.github.com/users/Dref360/repos
https://api.github.com/users/Dref360/starred{/owner}{/repo}
https://api.github.com/users/Dref360/subscriptions
User
https://api.github.com/users/Dref360
public
**Is your feature request related to a problem? Please describe.**

Similar to pandas, it would be great if we could select multiple columns at once.


**Describe the solution you'd like**
```python
my_dataset = ...  # Has columns ['idx', 'sentence', 'label']
idx, label = my_dataset[['idx', 'label']]
```

**Describe alternatives you've considered**
we can do `[dataset[col] for col in ('idx', 'label')]`

**Additional context**
This is of course very minor.
