[ 
https://issues.apache.org/jira/browse/BEAM-13966?focusedWorklogId=750424&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-750424
 ]

ASF GitHub Bot logged work on BEAM-13966:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Mar/22 20:17
            Start Date: 30/Mar/22 20:17
    Worklog Time Spent: 10m 
      Work Description: TheNeuralBit commented on a change in pull request 
#17043:
URL: https://github.com/apache/beam/pull/17043#discussion_r838929290



##########
File path: sdks/python/apache_beam/dataframe/frames.py
##########
@@ -3655,6 +3656,109 @@ def shift(self, axis, freq, **kwargs):
   describe = _agg_method(pd.DataFrame, 'describe')
   max = _agg_method(pd.DataFrame, 'max')
   min = _agg_method(pd.DataFrame, 'min')
+
+  @frame_base.with_docs_from(pd.DataFrame)
+  @frame_base.args_to_kwargs(pd.DataFrame)
+  @frame_base.populate_defaults(pd.DataFrame)
+  def pivot(self, index=None, columns=None, values=None, **kwargs):

Review comment:
       Oh please also add a docstring here indicating that any columns 
specified in `columns` must have CategoricalDType so we can determine the 
output column names. There's docstring infrastructure that will put this 
message in the "Differences from pandas" section, e.g. for align: 
   
![image](https://user-images.githubusercontent.com/675055/160923353-f75e81b7-ea4b-48ee-8567-c78016799cdc.png)
   




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 750424)
    Time Spent: 4h 40m  (was: 4.5h)

> Implement DataFrame.pivot() for DataFrame API
> ---------------------------------------------
>
>                 Key: BEAM-13966
>                 URL: https://issues.apache.org/jira/browse/BEAM-13966
>             Project: Beam
>          Issue Type: Sub-task
>          Components: dsl-dataframe, sdk-py-core
>            Reporter: Andy Ye
>            Assignee: Andy Ye
>            Priority: P3
>              Labels: dataframe-api
>          Time Spent: 4h 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to