Yicong-Huang commented on code in PR #57734:
URL: https://github.com/apache/spark/pull/57734#discussion_r3709864665


##########
python/pyspark/pandas/tests/test_numpy_compat.py:
##########
@@ -149,6 +149,24 @@ def test_np_bitwise_shift_functions(self):
                     np_func(psdf.value, psdf.bits), np_func(pdf.value, 
pdf.bits), almost=True
                 )
 
+    def test_np_float_power(self):
+        for pdf in (
+            pd.DataFrame({"base": [-64, -2, -1, 0, 1, 2, 64], "exponent": [-2, 
-1, 0, 1, 2, 3, 2]}),
+            pd.DataFrame(
+                {
+                    "base": [-np.inf, -64.0, -2.0, -0.0, 0.0, 2.0, 64.0, 
np.inf, np.nan],
+                    "exponent": [2.0, 3.0, -2.0, -3.0, -3.0, 0.5, -2.0, 2.0, 
2.0],
+                }
+            ),
+        ):
+            with self.subTest(base=pdf.base.tolist(), 
exponent=pdf.exponent.tolist()):

Review Comment:
   nit: do we want to avoid using subTest?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to