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

Function pandas_error

scripts/validate_docstrings.py:79–84  ·  view source on GitHub ↗

Copy of the numpydoc error function, since ERROR_MSGS can't be updated with our custom errors yet.

(code, **kwargs)

Source from the content-addressed store, hash-verified

77
78
79def pandas_error(code, **kwargs):
80 """
81 Copy of the numpydoc error function, since ERROR_MSGS can't be updated
82 with our custom errors yet.
83 """
84 return code, ERROR_MSGS[code].format(**kwargs)
85
86
87def get_api_items(api_doc_fd):

Callers 1

pandas_validateFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected