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 ae20357 commit 720d46cCopy full SHA for 720d46c
pandas/tests/series/indexing/test_datetime.py
@@ -507,8 +507,7 @@ def test_dt_date_dtype_all_nat_is_object():
507
def test_dt_date_all_nat_le_date():
508
# All-NaT Series should not raise error when compared to a datetime.date
509
# GH#61188
510
- s = Series([pd.NaT, pd.NaT])
511
- s = pd.to_datetime(s)
+ s = Series([pd.NaT, pd.NaT], dtype="datetime64[s]")
512
result = s.dt.date <= datetime.now().date()
513
expected = Series([False, False])
514
tm.assert_series_equal(result, expected)
0 commit comments