From 728ee7c3e38b675e439a0537482320a2379774d2 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sat, 8 Feb 2025 21:26:43 +0530 Subject: [PATCH] DOC: fix ES01 for pandas.option_context --- pandas/_config/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 8d1f61178830f..ce53e05608ba7 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -433,6 +433,11 @@ def option_context(*args) -> Generator[None]: """ Context manager to temporarily set options in a ``with`` statement. + This method allows users to set one or more pandas options temporarily + within a controlled block. The previous options' values are restored + once the block is exited. This is useful when making temporary adjustments + to pandas' behavior without affecting the global state. + Parameters ---------- *args : str | object