From 47fcf5964eb69874f660988bd62b02c181575478 Mon Sep 17 00:00:00 2001 From: Nick Crews Date: Thu, 3 Mar 2022 21:31:02 +0000 Subject: [PATCH] DOC: Fix warnings on underline length In https://github.com/pandas-dev/pandas/runs/5413504567?check_suite_focus=true I noticed a few warnings such as ``` /home/runner/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/numpydoc/docscrape.py:434: UserWarning: potentially wrong underline length... Methods ---------- in Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Int64Index is a special case... in the docstring of Int64Index in /home/runner/work/pandas/pandas/pandas/core/indexes/numeric.py. ``` So these were trivial enough to clean up --- pandas/core/indexes/numeric.py | 2 +- pandas/io/orc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index d4cb4a20be66b..cbfe177574665 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -62,7 +62,7 @@ class NumericIndex(Index): None Methods - ---------- + ------- None See Also diff --git a/pandas/io/orc.py b/pandas/io/orc.py index 6dd4de597c29d..b02660c089382 100644 --- a/pandas/io/orc.py +++ b/pandas/io/orc.py @@ -41,7 +41,7 @@ def read_orc( DataFrame Notes - ------- + ----- Before using this function you should read the :ref:`user guide about ORC ` and :ref:`install optional dependencies `. """