We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca0393 commit 5a4c70cCopy full SHA for 5a4c70c
pandas/errors/__init__.py
@@ -1045,6 +1045,15 @@ class TimezoneDtypeMismatchError(ValueError):
1045
1046
Use case / message:
1047
"cannot supply both a tz and a timezone-naive dtype (i.e. datetime64[ns])"
1048
+
1049
+ Examples
1050
+ --------
1051
+ >>> from pandas.core.arrays import datetimes # doctest: +SKIP
1052
+ >>> datetimes._validate_tz_from_dtype("datetime64[ns]", tz="UTC") # doctest: +SKIP
1053
+ Traceback (most recent call last):
1054
+ ...
1055
+ TimezoneDtypeMismatchError: cannot supply both a tz and a timezone-naive dtype
1056
+ (i.e. datetime64[ns])
1057
"""
1058
1059
0 commit comments