(self)
| 1838 | assert_identical(bar.reindex_like(foo), expected) |
| 1839 | |
| 1840 | def test_reindex_like_no_index(self) -> None: |
| 1841 | foo = DataArray(np.random.randn(5, 6), dims=["x", "y"]) |
| 1842 | assert_identical(foo, foo.reindex_like(foo)) |
| 1843 | |
| 1844 | bar = foo[:4] |
| 1845 | with pytest.raises(ValueError, match=r"different size for unlabeled"): |
| 1846 | foo.reindex_like(bar) |
| 1847 | |
| 1848 | def test_reindex_regressions(self) -> None: |
| 1849 | da = DataArray(np.random.randn(5), coords=[("time", range(5))]) |
nothing calls this directly
no test coverage detected