(self)
| 3004 | assert_identical(actual, arr) |
| 3005 | |
| 3006 | def test_dropna(self) -> None: |
| 3007 | x = np.random.randn(4, 4) |
| 3008 | x[::2, 0] = np.nan |
| 3009 | arr = DataArray(x, dims=["a", "b"]) |
| 3010 | |
| 3011 | actual = arr.dropna("a") |
| 3012 | expected = arr[1::2] |
| 3013 | assert_identical(actual, expected) |
| 3014 | |
| 3015 | actual = arr.dropna("b", how="all") |
| 3016 | assert_identical(actual, arr) |
| 3017 | |
| 3018 | actual = arr.dropna("a", thresh=1) |
| 3019 | assert_identical(actual, arr) |
| 3020 | |
| 3021 | actual = arr.dropna("b", thresh=3) |
| 3022 | expected = arr[:, 1:] |
| 3023 | assert_identical(actual, expected) |
| 3024 | |
| 3025 | def test_where(self) -> None: |
| 3026 | arr = DataArray(np.arange(4), dims="x") |
nothing calls this directly
no test coverage detected