xorbits.options.set_option#

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

Sets the value of the specified option.

参数:
  • 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.

返回:

The new value of the specified option.

返回类型:

Any

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

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

示例

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