Skip to content

Commit de79be5

Browse files
committed
DOC: fix duplicate Returns/Yields in option_context and mark expected warning in timeseries example (GH#61720)
1 parent 94ff63a commit de79be5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

doc/source/user_guide/timeseries.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ a ``Series``, this returns a ``Series`` (with the same index), while a list-like
197197
is converted to a ``DatetimeIndex``:
198198

199199
.. ipython:: python
200+
:okwarning:
200201
201202
pd.to_datetime(pd.Series(["Jul 31, 2009", "Jan 10, 2010", None]))
202203

pandas/_config/config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,6 @@ def option_context(*args) -> Generator[None]:
462462
interpreted as (pattern, value) pairs. Alternatively, a single
463463
dictionary of {pattern: value} may be provided.
464464
465-
Returns
466-
-------
467-
None
468-
No return value.
469-
470465
Yields
471466
------
472467
None

0 commit comments

Comments
 (0)