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

Method test_apply

pandas/tests/tseries/offsets/test_offsets.py:310–322  ·  view source on GitHub ↗
(self, offset_types, expecteds)

Source from the content-addressed store, hash-verified

308 assert result == expected_localize
309
310 def test_apply(self, offset_types, expecteds):
311 sdt = datetime(2011, 1, 1, 9, 0)
312 ndt = np.datetime64("2011-01-01 09:00")
313
314 expected = expecteds[offset_types.__name__]
315 expected_norm = Timestamp(expected.date())
316
317 for dt in [sdt, ndt]:
318 self._check_offsetfunc_works(offset_types, "_apply", dt, expected)
319
320 self._check_offsetfunc_works(
321 offset_types, "_apply", dt, expected_norm, normalize=True
322 )
323
324 def test_rollforward(self, offset_types, expecteds):
325 expecteds = expecteds.copy()

Callers

nothing calls this directly

Calls 2

dateMethod · 0.80

Tested by

no test coverage detected