Skip to content

Commit

Permalink
Set dtype=object when creating Ragged array (#12092)
Browse files Browse the repository at this point in the history
To create an array from a list of inhomogeneous objects explicitly
type to object

Since NumPy 1.24 numpy raises ValueError when creating a Ragged array
numpy/numpy#22004

---------

Co-authored-by: Anca Lita <27920906+ancalita@users.noreply.github.com>
  • Loading branch information
d61h6k4 and ancalita committed Mar 6, 2023
1 parent 28eb117 commit 0dddbdb
Show file tree
Hide file tree
Showing 11 changed files with 530 additions and 525 deletions.
1 change: 1 addition & 0 deletions changelog/12092.misc.md
@@ -0,0 +1 @@
Add function to convert ragged arrays to numpy arrays by setting data type to object to be able to upgrade numpy>1.24

0 comments on commit 0dddbdb

Please sign in to comment.