Skip to content

Commit 7157af5

Browse files
This avoids failure to_datetime when value passed is None. This fix is pandas versions > 0.24.
Closes pandas-dev#30011
2 parents 4dc5a3a + a2faab3 commit 7157af5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/indexes/datetimes/test_tools.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ def test_to_datetime_format_YYYYMMDD_with_none(self, input_s):
114114
# GH 30011
115115
# format='%Y%m%d'
116116
# with None
117-
expected = Series([Timestamp("19801222"), Timestamp(None),
118-
Timestamp("20010112")])
117+
expected = Series([Timestamp("19801222"), Timestamp(None), Timestamp("20010112")])
119118
result = pd.to_datetime(input_s, format="%Y%m%d")
120119
tm.assert_series_equal(result, expected)
121120

0 commit comments

Comments
 (0)