Inconsistent documentation on map remove_columns
{'login': 'zhaowei-wang-nlp', 'id': 22047467, 'node_id': 'MDQ6VXNlcjIyMDQ3NDY3', 'avatar_url': 'https://avatars.githubusercontent.com/u/22047467?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/zhaowei-wang-nlp', 'html_url': 'https://github.com/zhaowei-wang-nlp', 'followers_url': 'https://api.github.com/users/zhaowei-wang-nlp/followers', 'following_url': 'https://api.github.com/users/zhaowei-wang-nlp/following{/other_user}', 'gists_url': 'https://api.github.com/users/zhaowei-wang-nlp/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/zhaowei-wang-nlp/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/zhaowei-wang-nlp/subscriptions', 'organizations_url': 'https://api.github.com/users/zhaowei-wang-nlp/orgs', 'repos_url': 'https://api.github.com/users/zhaowei-wang-nlp/repos', 'events_url': 'https://api.github.com/users/zhaowei-wang-nlp/events{/privacy}', 'received_events_url': 'https://api.github.com/users/zhaowei-wang-nlp/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892861, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODYx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/documentation', 'name': 'documentation', 'color': '0075ca', 'default': True, 'description': 'Improvements or additions to documentation'}, {'id': 1935892865, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODY1', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/duplicate', 'name': 'duplicate', 'color': 'cfd3d7', 'default': True, 'description': 'This issue or pull request already exists'}, {'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'}, {'id': 4614514401, 'node_id': 'LA_kwDODunzps8AAAABEwvm4Q', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/hacktoberfest', 'name': 'hacktoberfest', 'color': 'DF8D62', 'default': False, 'description': ''}]
[]
Thanks for reporting, @zhaowei-wang-nlp.

You are right, the documentation is confusing on the behavior of `remove_columns`. We should better explain it.  This is a duplicate of https://github.com/huggingface/datasets/issues/2343. I'm closing this issue because as @mariosasko pointed out, it is a duplicate of:
- #2343
### Describe the bug

The page [process](https://huggingface.co/docs/datasets/process) says this about the parameter `remove_columns` of the function `map`:
When you remove a column, it is only removed after the example has been provided to the mapped function.

So it seems that the `remove_columns` parameter removes after the mapped functions.

However, another page, [the documentation of the function map](https://huggingface.co/docs/datasets/v2.6.1/en/package_reference/main_classes#datasets.Dataset.map.remove_columns) says:
Columns will be removed before updating the examples with the output of `function`, i.e. if `function` is adding columns with names in remove_columns, these columns will be kept.

So one page says "after the mapped function" and another says "before the mapped function."
Is there something wrong?


### Steps to reproduce the bug

Not about code.

### Expected behavior

consistent about the descriptions of the behavior of the parameter `remove_columns` in the function `map`.

### Environment info

datasets V2.6.0
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5144/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}