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

Method test_order_of_appearance_dt64

pandas/tests/test_algos.py:793–797  ·  view source on GitHub ↗
(self, unit)

Source from the content-addressed store, hash-verified

791 tm.assert_categorical_equal(result, expected)
792
793 def test_order_of_appearance_dt64(self, unit):
794 ser = Series([Timestamp("20160101"), Timestamp("20160101")]).dt.as_unit(unit)
795 result = pd.unique(ser)
796 expected = np.array(["2016-01-01T00:00:00.000000000"], dtype=f"M8[{unit}]")
797 tm.assert_numpy_array_equal(result, expected)
798
799 def test_order_of_appearance_dt64tz(self, unit):
800 dti = DatetimeIndex(

Callers

nothing calls this directly

Calls 4

SeriesClass · 0.90
as_unitMethod · 0.45
uniqueMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected