Cannot initialize series with empty 2D numpy array #18369
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Trying to create a Series from a empty numpy 2D array results in
InvalidOperationError: cannot reshape empty array into shape (0, 2)
.This kinda looks like #16522, but I believe is a different bug since the error message differs.
Expected behavior
The Series creation should succeed, resulting in an empty series with matching type (in that example,
pl.Array(pl.Float64, 2)
)Installed versions
The text was updated successfully, but these errors were encountered: