From 626a1693bb4ed27c9e5399f63a69b73ae3d80f6a Mon Sep 17 00:00:00 2001 From: Zemux1613 <42244022+Zemux1613@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:39:18 +0100 Subject: [PATCH] feat: add exception --- pandas/core/arrays/datetimes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 34a6e118733ae..b76ad5268e76e 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -2379,6 +2379,7 @@ def objects_to_datetime64( Raises ------ ValueError : if data cannot be converted to datetimes + TypeError : When a type cannot be converted to datetime """ assert errors in ["raise", "ignore", "coerce"]