forked from huggingface/datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Arrow type casting to struct for Image and Audio + Support nested…
… casting (huggingface#3575) * add storage cast * implement dict cast for image * factorize extension type creation for audio and image + implement type cast for thos custom types * fix tests * style * [big] allow extension array in nested arrays * docs * style * fix Features pickling * fix some tests * fix more tests * fix more tests * add base extensionarray for pyarrow<6 * add extensionarray for pyarrow<6 * add soundfile to tests requirements * minor * remove not implemented error for complex casting in pyarrow 3 * style * style again * add casting for fixed size lists * add libsndfile1 in the linux CI * style * typo * start adding new tests just to notice the concatenation issue... * [big] remove extension types + move cast_storage to the Image and Audio classes * minor * fix test * style * add more tests to image * add audio tests * support casting from null array * fix field names verifications when casting * docs + tests * use the new table_cast on pyarrow tables * whoops forgot one line * remove unused string handling in Image.decode_example * update tests accordingly
- Loading branch information
Showing
20 changed files
with
975 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.