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

Method test_setitem_pandas

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

Source from the content-addressed store, hash-verified

4770 )
4771
4772 def test_setitem_pandas(self) -> None:
4773 ds = self.make_example_math_dataset()
4774 ds["x"] = np.arange(3)
4775 ds_copy = ds.copy()
4776 ds_copy["bar"] = ds["bar"].to_pandas()
4777 assert_equal(ds, ds_copy)
4778
4779 def test_setitem_auto_align(self) -> None:
4780 ds = Dataset()

Callers

nothing calls this directly

Calls 5

assert_equalFunction · 0.90
arangeMethod · 0.80
copyMethod · 0.45
to_pandasMethod · 0.45

Tested by

no test coverage detected