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

Method tda

pandas/tests/arrays/test_timedeltas.py:21–23  ·  view source on GitHub ↗
(self, unit)

Source from the content-addressed store, hash-verified

19
20 @pytest.fixture
21 def tda(self, unit):
22 arr = np.arange(5, dtype=np.int64).view(f"m8[{unit}]")
23 return TimedeltaArray._simple_new(arr, dtype=arr.dtype)
24
25 def test_non_nano(self, unit):
26 arr = np.arange(5, dtype=np.int64).view(f"m8[{unit}]")

Callers

nothing calls this directly

Calls 2

viewMethod · 0.45
_simple_newMethod · 0.45

Tested by

no test coverage detected