zhengruifeng commented on code in PR #48492:
URL: https://github.com/apache/spark/pull/48492#discussion_r1804503146


##########
python/pyspark/sql/pandas/utils.py:
##########
@@ -94,3 +94,33 @@ def require_minimum_pyarrow_version() -> None:
             errorClass="ARROW_LEGACY_IPC_FORMAT",
             messageParameters={},
         )
+
+
+def require_minimum_numpy_version() -> None:
+    """Raise ImportError if minimum version of NumPy is not installed"""

Review Comment:
   numpy is a dependency of pandas, so it is available in connect;
   but not a mandatary one in classic.
   
   It seems `kde` actually only need `np.linspace`, whose logic is not complex, 
so we may remove the direct dependency of `numpy` later,



-- 
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