From f8d6d11ac5d4f50ddf487fe8581c26f0638d955c Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 14 Jan 2020 14:36:41 -0600 Subject: [PATCH] Revert "DOC: Fixed documented value of `pd.NA ** 0` (#31005)" This reverts commit da04c9a8fe6ddbc7028e8721c57d3e62d1da11e3. --- doc/source/user_guide/missing_data.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst index 0f55980b3d015..df9949e8ac261 100644 --- a/doc/source/user_guide/missing_data.rst +++ b/doc/source/user_guide/missing_data.rst @@ -825,10 +825,13 @@ For example, ``pd.NA`` propagates in arithmetic operations, similarly to There are a few special cases when the result is known, even when one of the operands is ``NA``. -.. ipython:: python - pd.NA ** 0 - 1 ** pd.NA +================ ====== +Operation Result +================ ====== +``pd.NA ** 0`` 0 +``1 ** pd.NA`` 1 +================ ====== In equality and comparison operations, ``pd.NA`` also propagates. This deviates from the behaviour of ``np.nan``, where comparisons with ``np.nan`` always