From d3d07bb36eea974be7bd85bdbb547bf9b3bb536d Mon Sep 17 00:00:00 2001 From: Chris Neffshade Date: Wed, 13 Sep 2023 09:50:43 +0000 Subject: [PATCH] Fix comments --- .../apache_beam/dataframe/frame_base.py | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/sdks/python/apache_beam/dataframe/frame_base.py b/sdks/python/apache_beam/dataframe/frame_base.py index 88e6eb6a060b..1da12ececff6 100644 --- a/sdks/python/apache_beam/dataframe/frame_base.py +++ b/sdks/python/apache_beam/dataframe/frame_base.py @@ -484,11 +484,14 @@ def args_to_kwargs(base_type, removed_method=False, removed_args=None): determine the name to use for arguments that are converted to keyword arguments. - removed_method used in cases where a method has been removed in a later - version of Pandas. removed_args used in cases where a method has had - arguments removed in a later version of Pandas. - For internal use only. No backwards compatibility guarantees. + + Args: + base_type: The pandas type of the method that this is trying to replicate. + removed_method: Whether this method has been removed in the running + Pandas version. + removed_args: If not empty, which arguments have been dropped in the + running Pandas version. """ def wrap(func): if removed_method: @@ -629,11 +632,14 @@ def populate_defaults(base_type, removed_method=False, removed_args=None): with default values for all keyword arguments, based on the default values for the identically-named method on `base_type`. - removed_method used in cases where a method has been removed in a later - version of Pandas. removed_args used in cases where a method has had - arguments removed in a later version of Pandas. - For internal use only. No backwards compatibility guarantees. + + Args: + base_type: The pandas type of the method that this is trying to replicate. + removed_method: Whether this method has been removed in the running + Pandas version. + removed_args: If not empty, which arguments have been dropped in the + running Pandas version. """ def wrap(func): if removed_method: