We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea26053 commit 7cd135eCopy full SHA for 7cd135e
pandas/tseries/tests/test_timeseries.py
@@ -4400,6 +4400,14 @@ def test_intercept_astype_object(self):
4400
result = df.values.squeeze()
4401
self.assertTrue((result[:, 0] == expected.values).all())
4402
4403
+ def test_nat_operations(self):
4404
+ # GH 8617
4405
+ s = Series([0, pd.NaT], dtype='m8[ns]')
4406
+ exp = s[0]
4407
+ self.assertEqual(s.median(), exp)
4408
+ self.assertEqual(s.min(), exp)
4409
+ self.assertEqual(s.max(), exp)
4410
+
4411
4412
class TestTimestamp(tm.TestCase):
4413
def test_class_ops_pytz(self):
0 commit comments