Skip to content

Commit 53d68dd

Browse files
committed
trials to get the docs right - rst
1 parent df90c0c commit 53d68dd

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

doc/_templates/autosummary/class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{% block attributes %}
1010
{% if attributes %}
11-
.. rubric:: {{ _('Attributes') }}
11+
.. rubric:: {{ _('Axttributes') }}
1212

1313
.. autosummary::
1414
{% for item in attributes %}

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def process_class_docstrings(app, what, name, obj, options, lines) -> None:
724724
joined = "\n".join(lines)
725725

726726
templates = [
727-
""".. rubric:: Attributes
727+
""".. rubric:: Ayttributes
728728
729729
.. autosummary::
730730
:toctree:

doc/source/reference/offset_frequency.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ Tick
11771177

11781178
Tick
11791179

1180-
Properties
1180+
Pxroperties
11811181
~~~~~~~~~~
11821182
.. autosummary::
11831183
:toctree: api/

doc/source/user_guide/enhancingperf.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Since ``apply_integrate_f`` is typed to accept an ``np.ndarray``, :meth:`Series.
205205
calls are needed to utilize this function.
206206

207207
.. ipython:: python
208+
:okexcept:
208209
209210
%timeit apply_integrate_f(df["a"].to_numpy(), df["b"].to_numpy(), df["N"].to_numpy())
210211
@@ -255,6 +256,7 @@ and ``wraparound`` checks can yield more performance.
255256
...:
256257

257258
.. ipython:: python
259+
:okexcept:
258260
259261
%timeit apply_integrate_f_wrap(df["a"].to_numpy(), df["b"].to_numpy(), df["N"].to_numpy())
260262

pandas/_libs/tslibs/offsets.pyx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,9 @@ cdef class SingleConstructorOffset(BaseOffset):
10051005
# Tick Offsets
10061006

10071007
cdef class Tick(SingleConstructorOffset):
1008+
"""
1009+
Represents ticks
1010+
"""
10081011
_adjust_dst = False
10091012
_prefix = "undefined"
10101013
_attributes = tuple(["n", "normalize"])
@@ -1879,6 +1882,14 @@ cdef class BusinessDay(BusinessMixin):
18791882
self._offset = state.pop("offset")
18801883
self._cache = state.pop("_cache", {})
18811884

1885+
def __init__(self, n=1, normalize=False, offset=timedelta(0)):
1886+
"""
1887+
__init__(self, n=1, normalize=False, offset=timedelta(0))
1888+
1889+
This defines init
1890+
"""
1891+
super().__init__(n, normalize, offset)
1892+
18821893
def _offset_str(self) -> str:
18831894
def get_str(td):
18841895
off_str = ""
@@ -5108,8 +5119,8 @@ def _warn_about_deprecated_aliases(name: str, is_period: bool) -> str:
51085119
warnings.warn(
51095120
f"\'{name}\' is deprecated and will be removed "
51105121
f"in a future version, please use "
5111-
f"\'{c_PERIOD_AND_OFFSET_DEPR_FREQSTR.get(name)}\'"
5112-
f" instead.",
5122+
f"\'{c_PERIOD_AND_OFFSET_DEPR_FREQSTR.get(name)}\' "
5123+
f"instead.",
51135124
FutureWarning,
51145125
stacklevel=find_stack_level(),
51155126
)
@@ -5122,8 +5133,8 @@ def _warn_about_deprecated_aliases(name: str, is_period: bool) -> str:
51225133
warnings.warn(
51235134
f"\'{name}\' is deprecated and will be removed "
51245135
f"in a future version, please use "
5125-
f"\'{_name}\'"
5126-
f" instead.",
5136+
f"\'{_name}\' "
5137+
f"instead.",
51275138
FutureWarning,
51285139
stacklevel=find_stack_level(),
51295140
)

0 commit comments

Comments
 (0)