itholic commented on code in PR #37410:
URL: https://github.com/apache/spark/pull/37410#discussion_r955533878
##########
python/pyspark/pandas/generic.py:
##########
@@ -2462,8 +2462,6 @@ def bool(self) -> bool:
df = self
elif isinstance(self, ps.Series):
df = self.to_dataframe()
- else:
- raise TypeError("bool() expects DataFrame or Series; however, "
"got [%s]" % (self,))
Review Comment:
`self` cannot be other than `DataFrame` or `Series`, so this line never be
used.
--
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]