(self)
| 6504 | x.rank("invalid_dim") |
| 6505 | |
| 6506 | def test_rank_use_bottleneck(self) -> None: |
| 6507 | ds = Dataset({"a": ("x", [0, np.nan, 2]), "b": ("y", [4, 6, 3, 4])}) |
| 6508 | with xr.set_options(use_bottleneck=False): |
| 6509 | with pytest.raises(RuntimeError): |
| 6510 | ds.rank("x") |
| 6511 | |
| 6512 | def test_count(self) -> None: |
| 6513 | ds = Dataset({"x": ("a", [np.nan, 1]), "y": 0, "z": np.nan}) |