HyukjinKwon commented on a change in pull request #34160:
URL: https://github.com/apache/spark/pull/34160#discussion_r719961791
##########
File path: python/pyspark/pandas/groupby.py
##########
@@ -1295,6 +1303,8 @@ def wrapped_func(
pdf_or_ser =
pdf.groupby(groupkey_names)[name].apply(wrapped_func, *args, **kwargs)
else:
pdf_or_ser = pdf.groupby(groupkey_names).apply(wrapped_func,
*args, **kwargs)
+ if should_return_series and isinstance(pdf_or_ser,
pd.DataFrame):
Review comment:
Looks all good one question. Does the function return a DataFrame
(instead of a Series) because we drop the grouping keys above
(https://github.com/apache/spark/pull/34160/files#diff-87acf2f7c70b4a2eeac5da33e34d1ae85951d400ace08bff6c09126a0a6431d9R1199)?
--
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]