Skip to content

Commit deafcf7

Browse files
DOC: fix ES01 for pandas.option_context (#60887)
1 parent 3da2c1c commit deafcf7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/_config/config.py

+5
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@ def option_context(*args) -> Generator[None]:
433433
"""
434434
Context manager to temporarily set options in a ``with`` statement.
435435
436+
This method allows users to set one or more pandas options temporarily
437+
within a controlled block. The previous options' values are restored
438+
once the block is exited. This is useful when making temporary adjustments
439+
to pandas' behavior without affecting the global state.
440+
436441
Parameters
437442
----------
438443
*args : str | object

0 commit comments

Comments
 (0)