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 a88ecae commit ae20357Copy full SHA for ae20357
pandas/tests/series/indexing/test_datetime.py
@@ -496,8 +496,7 @@ def test_compare_datetime_with_all_none():
496
def test_dt_date_dtype_all_nat_is_object():
497
# Ensure .dt.date on all-NaT Series returns object dtype and not datetime64
498
# GH#61188
499
- s = Series([pd.NaT, pd.NaT])
500
- s = pd.to_datetime(s)
+ s = Series([pd.NaT, pd.NaT], dtype="datetime64[s]")
501
result = s.dt.date
502
503
expected = Series([pd.NaT, pd.NaT], dtype=object)
0 commit comments