diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index ac0fc9e53ee94..99283809f3022 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -197,6 +197,7 @@ a ``Series``, this returns a ``Series`` (with the same index), while a list-like is converted to a ``DatetimeIndex``: .. ipython:: python + :okwarning: pd.to_datetime(pd.Series(["Jul 31, 2009", "Jan 10, 2010", None])) diff --git a/environment.yml b/environment.yml index 74186bd2581c4..74124a23f8a6c 100644 --- a/environment.yml +++ b/environment.yml @@ -84,7 +84,7 @@ dependencies: # documentation - gitpython # obtain contributors from git for whatsnew - natsort # DataFrame.sort_values doctest - - numpydoc + - numpydoc<1.7 - pydata-sphinx-theme=0.16 - pytest-cython # doctest - sphinx diff --git a/pandas/_config/config.py b/pandas/_config/config.py index d42d90d44f82f..dd4a5a7b209c7 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -462,11 +462,6 @@ def option_context(*args) -> Generator[None]: interpreted as (pattern, value) pairs. Alternatively, a single dictionary of {pattern: value} may be provided. - Returns - ------- - None - No return value. - Yields ------ None diff --git a/requirements-dev.txt b/requirements-dev.txt index 6515797bc3b9d..f30becb3efe5a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -59,7 +59,7 @@ tokenize-rt pre-commit>=4.2.0 gitpython natsort -numpydoc +numpydoc<1.7 pydata-sphinx-theme==0.16 pytest-cython sphinx