HyukjinKwon commented on a change in pull request #33646:
URL: https://github.com/apache/spark/pull/33646#discussion_r683904589
##########
File path: python/pyspark/pandas/window.py
##########
@@ -706,11 +706,16 @@ def _apply_as_series_or_frame(self, func:
Callable[[Column], Column]) -> FrameLi
if groupby._agg_columns_selected:
agg_columns = groupby._agg_columns
else:
- agg_columns = [
- psdf._psser_for(label)
+ agg_column_labels = [
+ label
for label in psdf._internal.column_labels
if label not in groupby._column_labels_to_exlcude
Review comment:
Can we add the column label to `column_labels_to_exlcude` (with some
comments to explain why) at `DataFrameGroupBy` constructor?
--
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]