Preserve None in list type cast in PyArrow 10
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-10-28T12:53:27Z
https://github.com/huggingface/datasets/pull/5174#issuecomment-1294965129
https://api.github.com/repos/huggingface/datasets/issues/5174
IC_kwDODunzps5NL5mJ
https://api.github.com/repos/huggingface/datasets/issues/comments/1294965129/reactions
2022-10-28T13:15:33Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1294965129
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
The `ListArray` type in PyArrow 10.0.0 supports the `mask` parameter, which allows us to preserve Nones in nested lists in `cast` instead of replacing them with empty lists.

Fix https://github.com/huggingface/datasets/issues/3676