Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frreiss opened this issue Jul 7, 2021 · 2 comments
Open

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

frreiss opened this issue Jul 7, 2021 · 2 comments
Assignees

Comments

@frreiss
Copy link
Member

frreiss commented Jul 7, 2021

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.

@frreiss
Copy link
Member Author

frreiss commented Jul 7, 2021

Tests temporarily disabled in 50a985e

@frreiss
Copy link
Member Author

frreiss commented Jul 8, 2021

Keep this issue open until the upstream bug is patched, then re-enable the tests, then close this issue.

@frreiss frreiss self-assigned this Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant