Update TAPAS tokenization's add_numeric_table_values
Using `table.iloc[row_index, col_index]` will use the index label, whereas `table.loc[row_index, col_index]` will use the location. So if the original dataframe had an index, using `iloc` would try to access the incorrect index and fall out of range.
@NielsRogge could you take a look at this?<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.<|||||>@LysandreJik is that something useful to merge? It solves the following issues https://github.com/huggingface/transformers/issues/14544 and https://github.com/huggingface/transformers/issues/10265

They are marked as closed since they were auto-closed by the bot, but the issues still persist. I'm also not sure why the tests fail, but i can look into it if someone is willing to review & merge this PR (if no one is available for that then i can just close it).<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.<|||||>Hi @xhlulu,

sorry for the very late reply. Could you rebase your PR with master, such that I can take a look to merge it?

Thanks,

Niels<|||||>_The documentation is not available anymore as the PR was closed or merged._<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.<|||||>I'm not sure if iloc even works here and not familiar with the tests. Will close this as this isn't a priority and there's an easy workaround.