diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 014a702618bda..9a1ee029f1609 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -762,7 +762,9 @@ def to_datetime( If parsing succeeded. Return type depends on input: - - list-like: DatetimeIndex + - list-like: + - DatetimeIndex, if timezone naive or aware with the same timezone + - Index of object dtype, if timezone aware with mixed time offsets - Series: Series of datetime64 dtype - scalar: Timestamp