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

Method test_diff_ea_axis

pandas/tests/test_algos.py:2057–2062  ·  view source on GitHub ↗
(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("2016-01-01", periods=3, tz="US/Pacific")._data
2059
2060 msg = "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("dtype", ["int8", "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