Check that array is not Float as nan != nan
{'login': 'Iwontbecreative', 'id': 494951, 'node_id': 'MDQ6VXNlcjQ5NDk1MQ==', 'avatar_url': 'https://avatars.githubusercontent.com/u/494951?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Iwontbecreative', 'html_url': 'https://github.com/Iwontbecreative', 'followers_url': 'https://api.github.com/users/Iwontbecreative/followers', 'following_url': 'https://api.github.com/users/Iwontbecreative/following{/other_user}', 'gists_url': 'https://api.github.com/users/Iwontbecreative/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Iwontbecreative/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Iwontbecreative/subscriptions', 'organizations_url': 'https://api.github.com/users/Iwontbecreative/orgs', 'repos_url': 'https://api.github.com/users/Iwontbecreative/repos', 'events_url': 'https://api.github.com/users/Iwontbecreative/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Iwontbecreative/received_events', 'type': 'User', 'site_admin': False}
[]
[]
The Exception wants to check for issues with StructArrays/ListArrays but catches FloatArrays with value nan as nan != nan.
Pass on FloatArrays as we should not raise an Exception for them.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2936/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/2936', 'html_url': 'https://github.com/huggingface/datasets/pull/2936', 'diff_url': 'https://github.com/huggingface/datasets/pull/2936.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/2936.patch', 'merged_at': '2021-09-21T09:39:04Z'}