fix Dataset.map when num_procs > num rows
{'login': 'connor-mccarthy', 'id': 55268212, 'node_id': 'MDQ6VXNlcjU1MjY4MjEy', 'avatar_url': 'https://avatars.githubusercontent.com/u/55268212?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/connor-mccarthy', 'html_url': 'https://github.com/connor-mccarthy', 'followers_url': 'https://api.github.com/users/connor-mccarthy/followers', 'following_url': 'https://api.github.com/users/connor-mccarthy/following{/other_user}', 'gists_url': 'https://api.github.com/users/connor-mccarthy/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/connor-mccarthy/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/connor-mccarthy/subscriptions', 'organizations_url': 'https://api.github.com/users/connor-mccarthy/orgs', 'repos_url': 'https://api.github.com/users/connor-mccarthy/repos', 'events_url': 'https://api.github.com/users/connor-mccarthy/events{/privacy}', 'received_events_url': 'https://api.github.com/users/connor-mccarthy/received_events', 'type': 'User', 'site_admin': False}
[]
[]
["Hi ! Thanks for fixing this :)\r\n\r\nLooks like you have tons of changes due to code formatting.\r\nWe're using `black` for this, with a custom line length. To run our code formatting, you just need to run\r\n```\r\nmake style\r\n```\r\n\r\nThen for the windows error in the CI, I'm looking into it. It's probably just a file that isn't properly closed"
 "CI is all green now ! Thanks :)\r\n\r\nThere are still many code formatting changes in your PR - probably due to the first commit you did.\r\nTo avoid conflicts with future PRs it would be nice to only have the changes related to the `num_proc` warning, and not have all those code formatting changes,\r\n\r\nCould you try remove those code formatting changes ?\r\n\r\nIf it's easier for you, you can make a new branch from `master` if needed"
 'Thanks, @lhoestq! Apologies for the half-baked commits yesterday! I wasn’t able to step back in to resolve those CI issues until this morning.\r\n\r\nAlso, I’m surprised that `make style` isn’t resolving the formatting changes. I’m a bit stumped on that, so I’m going to re-apply on a new branch and open a PR as you suggested.']
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/2560', 'html_url': 'https://github.com/huggingface/datasets/pull/2560', 'diff_url': 'https://github.com/huggingface/datasets/pull/2560.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/2560.patch', 'merged_at': None}
closes #2470

## Testing notes
To run updated tests:
```sh
pytest tests/test_arrow_dataset.py -k "BaseDatasetTest and test_map_multiprocessing" -s
```
With Python code (to view warning):
```python
from datasets import Dataset


dataset = Dataset.from_dict({"x": ["sample"]})
print(len(dataset))
dataset.map(lambda x: x, num_proc=10)
```
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2560/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}