MCPcopy Index your code
hub / github.com/pydata/xarray / test_unstack_without_missing

Method test_unstack_without_missing

xarray/tests/test_variable.py:1801–1807  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1799
1800 @pytest.mark.filterwarnings("error::RuntimeWarning")
1801 def test_unstack_without_missing(self):
1802 v = Variable(["z"], [0, 1, 2, 3])
1803 expected = Variable(["x", "y"], [[0, 1], [2, 3]])
1804
1805 actual = v.unstack(z={"x": 2, "y": 2})
1806
1807 assert_identical(actual, expected)
1808
1809 def test_broadcasting_math(self):
1810 x = np.random.randn(2, 3)

Callers

nothing calls this directly

Calls 3

unstackMethod · 0.95
VariableClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected