diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 968da7cf60105..29448f4cbfa2a 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -339,8 +339,8 @@ def wrapper(*args, **kwargs): def doc(*docstrings: None | str | Callable, **params) -> Callable[[F], F]: """ - A decorator take docstring templates, concatenate them and perform string - substitution on it. + A decorator to take docstring templates, concatenate them and perform string + substitution on them. This decorator will add a variable "_docstring_components" to the wrapped callable to keep track the original docstring template for potential usage.