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

Function _get_deprecated_option

pandas/_config/config.py:676–689  ·  view source on GitHub ↗

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

(key: str)

Source from the content-addressed store, hash-verified

674
675
676def _get_deprecated_option(key: str):
677 """
678 Retrieves the metadata for a deprecated option, if `key` is deprecated.
679
680 Returns
681 -------
682 DeprecatedOption (namedtuple) if key is deprecated, None otherwise
683 """
684 try:
685 d = _deprecated_options[key]
686 except KeyError:
687 return None
688 else:
689 return d
690
691
692def _get_registered_option(key: str):

Callers 3

_translate_keyFunction · 0.85
_warn_if_deprecatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected