Columns are removed before or after map function applied?
{'login': 'taghizad3h', 'id': 8199406, 'node_id': 'MDQ6VXNlcjgxOTk0MDY=', 'avatar_url': 'https://avatars.githubusercontent.com/u/8199406?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/taghizad3h', 'html_url': 'https://github.com/taghizad3h', 'followers_url': 'https://api.github.com/users/taghizad3h/followers', 'following_url': 'https://api.github.com/users/taghizad3h/following{/other_user}', 'gists_url': 'https://api.github.com/users/taghizad3h/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/taghizad3h/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/taghizad3h/subscriptions', 'organizations_url': 'https://api.github.com/users/taghizad3h/orgs', 'repos_url': 'https://api.github.com/users/taghizad3h/repos', 'events_url': 'https://api.github.com/users/taghizad3h/events{/privacy}', 'received_events_url': 'https://api.github.com/users/taghizad3h/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}]
[]
Hi! Columns are removed **after** applying the function and **before** updating the examples with the function's output (as per the docs [here](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.map.remove_columns)). I agree the docs on this should be more clear.
## Describe the bug
According to the documentation when applying map function the [remove_columns ](https://huggingface.co/docs/datasets/processing.html#removing-columns) will be removed after they are passed to the function, but in the [source code](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.map) it's documented that they are removed before applying function. I thinks the source code doc is more accurate, right?




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