craftbeerpi4-pione/venv/lib/python3.8/site-packages/pandas/tests/series/test_reductions.py

12 lines
249 B
Python
Raw Normal View History

import pandas as pd
2021-01-30 22:29:33 +01:00
from pandas import Series
def test_reductions_td64_with_nat():
# GH#8617
ser = Series([0, pd.NaT], dtype="m8[ns]")
exp = ser[0]
assert ser.median() == exp
assert ser.min() == exp
assert ser.max() == exp