craftbeerpi4-pione/venv3/lib/python3.7/site-packages/pandas/tests/series/test_reductions.py

12 lines
249 B
Python
Raw Normal View History

2021-03-03 23:49:41 +01:00
import pandas as pd
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