MCPcopy
hub / github.com/pydata/xarray / test_count

Method test_count

xarray/tests/test_dataset.py:6512–6516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6510 ds.rank("x")
6511
6512 def test_count(self) -> None:
6513 ds = Dataset({"x": ("a", [np.nan, 1]), "y": 0, "z": np.nan})
6514 expected = Dataset({"x": 1, "y": 1, "z": 0})
6515 actual = ds.count()
6516 assert_identical(expected, actual)
6517
6518 def test_map(self) -> None:
6519 data = create_test_data()

Callers

nothing calls this directly

Calls 3

DatasetClass · 0.90
assert_identicalFunction · 0.90
countMethod · 0.45

Tested by

no test coverage detected