Skip to content

Commit 9c74428

Browse files
authored
DOC: Uniform block directive syntax. (#44757)
1 parent 2d0fa31 commit 9c74428

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ repos:
111111
# Incorrect code-block / IPython directives
112112
|\.\.\ code-block\ ::
113113
|\.\.\ ipython\ ::
114+
# directive should not have a space before ::
115+
|\.\.\ \w+\ ::
114116
115117
# Check for deprecated messages without sphinx directive
116118
|(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)

doc/source/user_guide/io.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3546,9 +3546,9 @@ with ``on_demand=True``.
35463546
Specifying sheets
35473547
+++++++++++++++++
35483548

3549-
.. note :: The second argument is ``sheet_name``, not to be confused with ``ExcelFile.sheet_names``.
3549+
.. note:: The second argument is ``sheet_name``, not to be confused with ``ExcelFile.sheet_names``.
35503550

3551-
.. note :: An ExcelFile's attribute ``sheet_names`` provides access to a list of sheets.
3551+
.. note:: An ExcelFile's attribute ``sheet_names`` provides access to a list of sheets.
35523552

35533553
* The arguments ``sheet_name`` allows specifying the sheet or sheets to read.
35543554
* The default value for ``sheet_name`` is 0, indicating to read the first sheet

pandas/core/algorithms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def factorize(
633633
is a Categorical. When `values` is some other pandas object, an
634634
`Index` is returned. Otherwise, a 1-D ndarray is returned.
635635
636-
.. note ::
636+
.. note::
637637
638638
Even if there's a missing value in `values`, `uniques` will
639639
*not* contain an entry for it.

0 commit comments

Comments
 (0)