dzhigimont commented on code in PR #40370:
URL: https://github.com/apache/spark/pull/40370#discussion_r1175552369


##########
python/pyspark/pandas/frame.py:
##########
@@ -3582,14 +3571,18 @@ def between_time(
         if not isinstance(self.index, ps.DatetimeIndex):
             raise TypeError("Index must be DatetimeIndex")
 
+        if inclusive not in ["left", "right", "both", "neither"]:
+            msg = "Inclusive has to be either 'both', 'neither', 'left' or 
'right'"
+            raise ValueError(msg)

Review Comment:
   Changed to PySparkValueError and the new error_class has been added



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