Skip to content

Commit ae8534f

Browse files
committed
ENH: Support for list of formats in pd.to_datetime() (pandas-dev#55226)
1 parent 2ffda59 commit ae8534f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/tools/test_to_datetime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def test_to_datetime_where_formart_is_list(self):
10981098
all_formats = ['%Y-%m-%d','%Y-%m-%d %H:%M:%S']
10991099
result = to_datetime(data,format=all_formats)
11001100
expected = DatetimeIndex(
1101-
['2023-10-12 00:00:00', '2023-10-13 14:30:00'], dtype="datetime64[ns]",
1101+
['2023-10-12 00:00:00','2023-10-13 14:30:00'], dtype="datetime64[ns]",
11021102
freq=None
11031103
)
11041104
tm.assert_index_equal(result,expected)

0 commit comments

Comments
 (0)