add_column should preserve _indexes
{'login': 'cceyda', 'id': 15624271, 'node_id': 'MDQ6VXNlcjE1NjI0Mjcx', 'avatar_url': 'https://avatars.githubusercontent.com/u/15624271?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/cceyda', 'html_url': 'https://github.com/cceyda', 'followers_url': 'https://api.github.com/users/cceyda/followers', 'following_url': 'https://api.github.com/users/cceyda/following{/other_user}', 'gists_url': 'https://api.github.com/users/cceyda/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/cceyda/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/cceyda/subscriptions', 'organizations_url': 'https://api.github.com/users/cceyda/orgs', 'repos_url': 'https://api.github.com/users/cceyda/repos', 'events_url': 'https://api.github.com/users/cceyda/events{/privacy}', 'received_events_url': 'https://api.github.com/users/cceyda/received_events', 'type': 'User', 'site_admin': False}
[]
[]
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_4582). All of your documentation changes will be reflected on that endpoint.
https://github.com/huggingface/datasets/issues/3769#issuecomment-1167146126

doing `.add_column("x",x_data)` also removed any `_indexes` on the dataset, decided this shouldn't be the case.

This was because `add_column` was creating a new `Dataset(...)` and wasn't possible to pass indexes on init.
with this PR now can pass 'indexes' on init through `IndexableMixin`

- [x] Added test
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4582/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/4582', 'html_url': 'https://github.com/huggingface/datasets/pull/4582', 'diff_url': 'https://github.com/huggingface/datasets/pull/4582.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/4582.patch', 'merged_at': None}