❓ How to apply a map to all subsets ?
MEMBER
That's the way!
2020-05-15T07:04:22Z
https://github.com/huggingface/datasets/issues/118#issuecomment-629068436
https://api.github.com/repos/huggingface/datasets/issues/118
MDEyOklzc3VlQ29tbWVudDYyOTA2ODQzNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/629068436/reactions
2020-05-15T07:04:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/629068436
https://avatars.githubusercontent.com/u/7353373?v=4
https://api.github.com/users/thomwolf/events{/privacy}
https://api.github.com/users/thomwolf/followers
https://api.github.com/users/thomwolf/following{/other_user}
https://api.github.com/users/thomwolf/gists{/gist_id}
https://github.com/thomwolf
thomwolf
MDQ6VXNlcjczNTMzNzM=
https://api.github.com/users/thomwolf/orgs
https://api.github.com/users/thomwolf/received_events
https://api.github.com/users/thomwolf/repos
https://api.github.com/users/thomwolf/starred{/owner}{/repo}
https://api.github.com/users/thomwolf/subscriptions
User
https://api.github.com/users/thomwolf
public
I'm working with CNN/DM dataset, where I have 3 subsets : `train`, `test`, `validation`.

Should I apply my map function on the subsets one by one ?

```python
import nlp

cnn_dm = nlp.load_dataset('cnn_dailymail')
for corpus in ['train', 'test', 'validation']:
         cnn_dm[corpus] = cnn_dm[corpus].map(my_func)
```

Or is there a better way to do this ?