You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/02/24 04:03:55 UTC
[spark] 01/02: Revert "[SPARK-38297][PYTHON] Explicitly cast the return value at DataFrame.to_numpy in POS"
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 <gu...@apache.org>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org