You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by bh...@apache.org on 2020/11/20 01:54:11 UTC

[beam] branch master updated: [BEAM-9547] Add support for Series.rename (#13385)

This is an automated email from the ASF dual-hosted git repository.

bhulette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 54225bd  [BEAM-9547] Add support for Series.rename (#13385)
54225bd is described below

commit 54225bd158dcc81267b7cd345b3bcfc1a7529048
Author: Brian Hulette <bh...@google.com>
AuthorDate: Thu Nov 19 17:53:18 2020 -0800

    [BEAM-9547] Add support for Series.rename (#13385)
---
 sdks/python/apache_beam/dataframe/frames.py               | 1 +
 sdks/python/apache_beam/dataframe/pandas_doctests_test.py | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/dataframe/frames.py b/sdks/python/apache_beam/dataframe/frames.py
index 7362dd2..ccd0f49 100644
--- a/sdks/python/apache_beam/dataframe/frames.py
+++ b/sdks/python/apache_beam/dataframe/frames.py
@@ -270,6 +270,7 @@ class DeferredSeries(DeferredDataFrameOrSeries):
 
   array = property(frame_base.wont_implement_method('non-deferred value'))
 
+  rename = frame_base._elementwise_method('rename')
   between = frame_base._elementwise_method('between')
 
   def dot(self, other):
diff --git a/sdks/python/apache_beam/dataframe/pandas_doctests_test.py b/sdks/python/apache_beam/dataframe/pandas_doctests_test.py
index 268f4c2..0112352 100644
--- a/sdks/python/apache_beam/dataframe/pandas_doctests_test.py
+++ b/sdks/python/apache_beam/dataframe/pandas_doctests_test.py
@@ -260,7 +260,6 @@ class DoctestTest(unittest.TestCase):
             'pandas.core.series.Series.nonzero': ['*'],
             'pandas.core.series.Series.quantile': ['*'],
             'pandas.core.series.Series.pop': ['ser'],  # testing side effect
-            'pandas.core.series.Series.rename': ['*'],
             'pandas.core.series.Series.repeat': ['*'],
             'pandas.core.series.Series.replace': ['*'],
             'pandas.core.series.Series.reset_index': ['*'],