uros-b commented on code in PR #56533:
URL: https://github.com/apache/spark/pull/56533#discussion_r3441343736


##########
python/pyspark/pandas/strings.py:
##########
@@ -1116,6 +1117,12 @@ def findall(self, pat: str, flags: int = 0) -> 
"ps.Series":
             All non-overlapping matches of pattern or regular expression in
             each string of this Series.
 
+        Notes
+        -----
+        For regular expressions with more than one capture group, 
pandas-on-Spark
+        returns nested lists instead of pandas' tuple matches because Spark SQL
+        does not have a tuple type.
+
         Examples

Review Comment:
   Should we update the Examples accordingly? Seems like a short doctest 
showing multi-group output as nested lists would complement the Notes section.



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