From f761940e23fdcf2b99c7a61b8e92549d85fbdaba Mon Sep 17 00:00:00 2001 From: William Andrea <22385371+wjandrea@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:29:43 -0400 Subject: [PATCH 1/3] DOC: Add link description Also remove errant space --- pandas/_libs/tslibs/timedeltas.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index e320aca04683c..61e720b970257 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1739,8 +1739,8 @@ cdef class _Timedelta(timedelta): """ Format the Timedelta as ISO 8601 Duration. - ``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]`` s are replaced by the - values. See https://en.wikipedia.org/wiki/ISO_8601#Durations. + ``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]``s are replaced by the + values. See Wikipedia: `ISO 8601 § Durations `_. Returns ------- From ca10e2b742ce6c89ab41dce8e73db44c26fd2ed8 Mon Sep 17 00:00:00 2001 From: William Andrea <22385371+wjandrea@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:34:41 -0400 Subject: [PATCH 2/3] fix line too long --- pandas/_libs/tslibs/timedeltas.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 61e720b970257..0cbcc5b95d9ce 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1740,7 +1740,8 @@ cdef class _Timedelta(timedelta): Format the Timedelta as ISO 8601 Duration. ``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]``s are replaced by the - values. See Wikipedia: `ISO 8601 § Durations `_. + values. See Wikipedia: + `ISO 8601 § Durations `_. Returns ------- From cda0b5a38d808fea0c7bd0848a565ec93288d293 Mon Sep 17 00:00:00 2001 From: William Andrea <22385371+wjandrea@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:54:13 -0400 Subject: [PATCH 3/3] Undo space removal --- pandas/_libs/tslibs/timedeltas.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 0cbcc5b95d9ce..36fe29b2146b7 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1739,7 +1739,7 @@ cdef class _Timedelta(timedelta): """ Format the Timedelta as ISO 8601 Duration. - ``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]``s are replaced by the + ``P[n]Y[n]M[n]DT[n]H[n]M[n]S``, where the ``[n]`` s are replaced by the values. See Wikipedia: `ISO 8601 § Durations `_.