This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git

commit 2b3ece5d375274965a4a98e914dfb9d3cefd98d1
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Thu Feb 24 13:02:24 2022 +0900

    Revert "[SPARK-38297][PYTHON] Explicitly cast the return value at 
DataFrame.to_numpy in POS"
    
    This reverts commit a0d2be565486367abd6b637c98634c35420994ce.
---
 python/pyspark/pandas/generic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/pandas/generic.py b/python/pyspark/pandas/generic.py
index c26b516..cdd8f67 100644
--- a/python/pyspark/pandas/generic.py
+++ b/python/pyspark/pandas/generic.py
@@ -573,7 +573,7 @@ class Frame(object, metaclass=ABCMeta):
         >>> ps.Series(['a', 'b', 'a']).to_numpy()
         array(['a', 'b', 'a'], dtype=object)
         """
-        return cast(np.ndarray, self._to_pandas().values)
+        return self.to_pandas().values
 
     @property
     def values(self) -> np.ndarray:

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

Reply via email to