Skip to content

Bug in Pandas 1.3.0 block manager breaks tests for TensorArray #221

@frreiss

Description

@frreiss

The test cases under TestPandasSetitem.test_setitem_series() fail on Pandas 1.3.0 due to pandas-dev/pandas#42437.

These tests create a Series of dtype object and attempt to assign a TensorArray to that series. They fail because Pandas passes the TensorArray through numpy.asarray(), which turns the TensorArray into a 2D ndarray instead of a 1D array of ndarray objects.

Users should be able to work around this issue for now by explicitly casting TensorArrays to dtype of object, then performing the assignment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions