Skip to content

Commit

Permalink
Revert "[SPARK-38297][PYTHON] Explicitly cast the return value at Dat…
Browse files Browse the repository at this point in the history
…aFrame.to_numpy in POS"

This reverts commit a0d2be5.
  • Loading branch information
HyukjinKwon committed Feb 24, 2022
1 parent 02b2239 commit 2b3ece5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/pandas/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def to_numpy(self) -> np.ndarray:
>>> 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:
Expand Down

0 comments on commit 2b3ece5

Please sign in to comment.