xorbits.options.set_option#

options.set_option(option: str, value: Any) Any#

Sets the value of the specified option.

Parameters:
  • option (str) – The name of the option to set. Can be a nested option using dot notation (e.g., dataframe.dtype_backend).

  • value (Any) – The value to set for the specified option.

Returns:

The new value of the specified option.

Return type:

Any

Raises:
  • AttributeError – If the specified option does not exist.

  • ValueError – If the provided value is invalid for the option.

Examples

>>> xorbits.options.set_option("show_progress", False)