pandas.test#
- pandas.test(extra_args=None, run_doctests=False)[源代码]#
使用 pytest 运行 pandas 测试套件。
默认情况下,使用标记 -m “not slow and not network and not db” 运行。
- Parameters:
- extra_argslist[str],默认为 None
要运行的额外测试标记。
- run_doctestsbool,默认 False
是否仅运行 Python 和 Cython doctests。如果您想同时运行 doctests/常规测试,只需在 extra_args 中添加 “–doctest-modules”/”–doctest-cython”。
Examples
>>> pd.test() running: pytest...