diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6f46299e277d..ea15e135455ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -111,6 +111,8 @@ repos: # Incorrect code-block / IPython directives |\.\.\ code-block\ :: |\.\.\ ipython\ :: + # directive should not have a space before :: + |\.\.\ \w+\ :: # Check for deprecated messages without sphinx directive |(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 204706f784fe8..cd7105d125947 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3546,9 +3546,9 @@ with ``on_demand=True``. Specifying sheets +++++++++++++++++ -.. note :: The second argument is ``sheet_name``, not to be confused with ``ExcelFile.sheet_names``. +.. note:: The second argument is ``sheet_name``, not to be confused with ``ExcelFile.sheet_names``. -.. note :: An ExcelFile's attribute ``sheet_names`` provides access to a list of sheets. +.. note:: An ExcelFile's attribute ``sheet_names`` provides access to a list of sheets. * The arguments ``sheet_name`` allows specifying the sheet or sheets to read. * The default value for ``sheet_name`` is 0, indicating to read the first sheet diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 538d9b0348d5f..b12e5be7722d0 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -633,7 +633,7 @@ def factorize( is a Categorical. When `values` is some other pandas object, an `Index` is returned. Otherwise, a 1-D ndarray is returned. - .. note :: + .. note:: Even if there's a missing value in `values`, `uniques` will *not* contain an entry for it.