MCPcopy
hub / github.com/pandas-dev/pandas / _get_registered_option

Function _get_registered_option

pandas/_config/config.py:692–700  ·  view source on GitHub ↗

Retrieves the option metadata if `key` is a registered option. Returns ------- RegisteredOption (namedtuple) if key is deprecated, None otherwise

(key: str)

Source from the content-addressed store, hash-verified

690
691
692def _get_registered_option(key: str):
693 """
694 Retrieves the option metadata if `key` is a registered option.
695
696 Returns
697 -------
698 RegisteredOption (namedtuple) if key is deprecated, None otherwise
699 """
700 return _registered_options.get(key)
701
702
703def _translate_key(key: str) -> str:

Callers 3

set_optionFunction · 0.85
get_default_valFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected