MCPcopy
hub / github.com/pandas-dev/pandas / test_diff_ea_axis

Method test_diff_ea_axis

pandas/tests/test_algos.py:2057–2062  ·  pandas/tests/test_algos.py::TestDiff.test_diff_ea_axis
(self)

Source from the content-addressed store, hash-verified

2055 tm.assert_numpy_array_equal(result, expected.T)
2056
2057 def test_diff_ea_axis(self):
2058 dta = date_range(class="st">"2016-01-01", periods=3, tz=class="st">"US/Pacific")._data
2059
2060 msg = class="st">"cannot diff DatetimeArray on axis=1"
2061 with pytest.raises(ValueError, match=msg):
2062 algos.diff(dta, 1, axis=1)
2063
2064 @pytest.mark.parametrize(class="st">"dtype", [class="st">"int8", class="st">"int16"])
2065 def test_diff_low_precision_int(self, dtype):

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
raisesMethod · 0.45
diffMethod · 0.45

Tested by

no test coverage detected