pandas.option_context

pandas 3.1.1 · Options and settings · function

Temporarily override options inside a with block and restore them on exit.

Call syntax

pd.option_context(*args)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
*args Optional
Additional positional arguments

Returns

None