Skip to content

Commit 4812f69

Browse files
committed
improve expect_data; remove assert on "date" column dtype
1 parent 30b2149 commit 4812f69

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/tests/io/test_common.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,8 @@ def test_pyarrow_read_csv_datetime_dtype():
683683
result = pd.read_csv(
684684
StringIO(data), parse_dates=["date"], dayfirst=True, dtype_backend="pyarrow"
685685
)
686-
expect_data = pd.Series(
687-
pd.to_datetime(["20/12/2025", pd.NaT, "31/12/2020"], dayfirst=True)
688-
)
686+
687+
expect_data = pd.to_datetime(["20/12/2025", pd.NaT, "31/12/2020"], dayfirst=True)
689688
expect = pd.DataFrame({"date": expect_data})
690689

691-
assert (result["date"].dtype) == "datetime64[s]"
692690
tm.assert_frame_equal(expect, result)

0 commit comments

Comments
 (0)