File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1040,12 +1040,18 @@ class InvalidComparison(Exception):
10401040
10411041class TimezoneDtypeMismatchError (ValueError ):
10421042 """
1043- Raised when both a separate tz and a tz-naive numpy datetime64 dtype are
1044- supplied (e.g. tz is not None and dtype is datetime64[ns]).
1043+ Raised when a tz is supplied with a timezone-naive numpy datetime64 dtype.
10451044
10461045 Use case / message:
10471046 "cannot supply both a tz and a timezone-naive dtype (i.e. datetime64[ns])"
10481047
1048+ See Also
1049+ --------
1050+ pandas.core.dtypes.dtypes.DatetimeTZDtype : Datetime dtype with an associated
1051+ timezone.
1052+ pandas.core.arrays.datetimes._validate_tz_from_dtype : Validation helper that may
1053+ raise this error.
1054+
10491055 Examples
10501056 --------
10511057 >>> from pandas.core.arrays import datetimes # doctest: +SKIP
You can’t perform that action at this time.
0 commit comments