Fix bug when casting empty array to class labels
{'login': 'marioga', 'id': 6591505, 'node_id': 'MDQ6VXNlcjY1OTE1MDU=', 'avatar_url': 'https://avatars.githubusercontent.com/u/6591505?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/marioga', 'html_url': 'https://github.com/marioga', 'followers_url': 'https://api.github.com/users/marioga/followers', 'following_url': 'https://api.github.com/users/marioga/following{/other_user}', 'gists_url': 'https://api.github.com/users/marioga/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/marioga/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/marioga/subscriptions', 'organizations_url': 'https://api.github.com/users/marioga/orgs', 'repos_url': 'https://api.github.com/users/marioga/repos', 'events_url': 'https://api.github.com/users/marioga/events{/privacy}', 'received_events_url': 'https://api.github.com/users/marioga/received_events', 'type': 'User', 'site_admin': False}
[]
[]
_The documentation is not available anymore as the PR was closed or merged._
Fix https://github.com/huggingface/datasets/issues/5520.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5521/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/5521', 'html_url': 'https://github.com/huggingface/datasets/pull/5521', 'diff_url': 'https://github.com/huggingface/datasets/pull/5521.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/5521.patch', 'merged_at': '2023-02-12T11:17:17Z'}