Skip to content

Commit 8e522eb

Browse files
Fix typo in tz_convert docs (#47131)
add klass doc decorations to tz_convert and tz_localize
1 parent e9350a4 commit 8e522eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/generic.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9810,6 +9810,7 @@ def truncate(
98109810
return result
98119811

98129812
@final
9813+
@doc(klass=_shared_doc_kwargs["klass"])
98139814
def tz_convert(
98149815
self: NDFrameT, tz, axis=0, level=None, copy: bool_t = True
98159816
) -> NDFrameT:
@@ -9868,6 +9869,7 @@ def _tz_convert(ax, tz):
98689869
return result.__finalize__(self, method="tz_convert")
98699870

98709871
@final
9872+
@doc(klass=_shared_doc_kwargs["klass"])
98719873
def tz_localize(
98729874
self: NDFrameT,
98739875
tz,
@@ -9923,7 +9925,7 @@ def tz_localize(
99239925
99249926
Returns
99259927
-------
9926-
Series or DataFrame
9928+
{klass}
99279929
Same type as the input.
99289930
99299931
Raises

0 commit comments

Comments
 (0)