擅长:python、mysql、java
<p>他们在<a href="https://github.com/pandas-dev/pandas/blob/master/pandas/_testing.py" rel="nofollow noreferrer">_testing.py</a>中将其移动到“私有”API中</p>
<p>实际上,您可能应该直接使用<a href="https://docs.pytest.org/en/3.0.2/recwarn.html" rel="nofollow noreferrer">pytest</a>的<code>with pytest.warns()</code>方法来实现这一点,我怀疑这就是他们移动它的原因,尽管我找不到关于这个选择的讨论</p>