diff --git a/modin/core/storage_formats/base/query_compiler.py b/modin/core/storage_formats/base/query_compiler.py index df21d021b82..764b32db3ed 100644 --- a/modin/core/storage_formats/base/query_compiler.py +++ b/modin/core/storage_formats/base/query_compiler.py @@ -1118,7 +1118,7 @@ def merge_asof( tolerance=None, allow_exact_matches: bool = True, direction: str = "backward", - ): # noqa: GL08 + ): # Pandas fallbacks for tricky cases: if ( # No idea how this works or why it does what it does; and in fact @@ -3624,7 +3624,7 @@ def groupby_fillna( def groupby_diff( self, by, axis, groupby_kwargs, agg_args, agg_kwargs, drop=False - ): # noqa: GL08 + ): return self.groupby_agg( by=by, agg_func="diff", @@ -3637,7 +3637,7 @@ def groupby_diff( def groupby_pct_change( self, by, axis, groupby_kwargs, agg_args, agg_kwargs, drop=False - ): # noqa: GL08 + ): return self.groupby_agg( by=by, agg_func="pct_change", @@ -3945,7 +3945,7 @@ def groupby_ohlc( agg_args, agg_kwargs, is_df, - ): # noqa: GL08 + ): if not is_df: return self.groupby_agg( by=by, @@ -4609,7 +4609,7 @@ def shift( freq, axis, fill_value, - ): # noqa: GL08 + ): return DataFrameDefault.register(pandas.DataFrame.shift)( self, periods, freq, axis, fill_value ) diff --git a/modin/utils.py b/modin/utils.py index ee72620fa7b..a3ed1dc91a3 100644 --- a/modin/utils.py +++ b/modin/utils.py @@ -310,9 +310,6 @@ def _replace_doc( target_doc = target_obj.__doc__ or "" overwrite = overwrite or not target_doc doc = source_doc if overwrite else target_doc - if doc == "": - # Empty docstrings do not need to be inherited - return if parent_cls and not attr_name: if isinstance(target_obj, property):