(self, unit)
| 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( |