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

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

                Author: ASF GitHub Bot
            Created on: 29/Apr/21 21:01
            Start Date: 29/Apr/21 21:01
    Worklog Time Spent: 10m 
      Work Description: TheNeuralBit commented on a change in pull request 
#14689:
URL: https://github.com/apache/beam/pull/14689#discussion_r623394660



##########
File path: sdks/python/apache_beam/dataframe/pandas_doctests_test.py
##########
@@ -711,6 +711,7 @@ def test_top_level(self):
         wont_implement_ok={
             'to_datetime': ['s.head()'],
             'to_pickle': ['*'],
+            'melt': ['*'],

Review comment:
       similarly here, but based on [these 
examples](https://pandas.pydata.org/docs/reference/api/pandas.melt.html)

##########
File path: sdks/python/apache_beam/dataframe/pandas_doctests_test.py
##########
@@ -208,10 +208,10 @@ def test_dataframe_tests(self):
             ],
             'pandas.core.frame.DataFrame.sort_index': ['*'],
             'pandas.core.frame.DataFrame.sort_values': ['*'],
+            'pandas.core.frame.DataFrame.melt': ['*']

Review comment:
       Could you modify this so it just skips the calls that don't work? 
Unfortunately that will be most of them, since the defiault is 
`ignore_index=True`, but based on 
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.melt.html it 
looks like we can at least run `df.melt(id_vars=['A'], value_vars=['B', 'C'], 
ignore_index=False)`




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

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 591235)
    Time Spent: 1.5h  (was: 1h 20m)

> Implement melt for DataFrame
> ----------------------------
>
>                 Key: BEAM-12018
>                 URL: https://issues.apache.org/jira/browse/BEAM-12018
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Brian Hulette
>            Assignee: Rogelio Miguel Hernandez Sandoval
>            Priority: P3
>              Labels: dataframe-api
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Add an implementation for 
> [melt|https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.melt.html]
>  that works for DeferredDataFrame, and is fully unit tested with some 
> combination of pandas_doctests_test.py and frames_test.py. 
> https://github.com/apache/beam/pull/14274 is an example of a typical PR that 
> adds new operations. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to