From 2418b050dbefb65c6de47e7278bd7a660074b96b Mon Sep 17 00:00:00 2001 From: Jonathan Shi Date: Mon, 16 Sep 2024 15:01:06 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Anatoly Myachev --- modin/pandas/series.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modin/pandas/series.py b/modin/pandas/series.py index 9e52f113176..b4b630aa1de 100644 --- a/modin/pandas/series.py +++ b/modin/pandas/series.py @@ -1037,7 +1037,7 @@ def eq( level=level, fill_value=fill_value, axis=axis, - squeeze_other=isinstance(other, (pandas.Series, Series)), + squeeze_other=isinstance(other, Series), ) def equals(self, other) -> bool: # noqa: PR01, RT01, D200 @@ -1153,7 +1153,7 @@ def ge( level=level, fill_value=fill_value, axis=axis, - squeeze_other=isinstance(other, (pandas.Series, Series)), + squeeze_other=isinstance(other, Series), ) def groupby( @@ -1208,7 +1208,7 @@ def gt( level=level, fill_value=fill_value, axis=axis, - squeeze_other=isinstance(other, (pandas.Series, Series)), + squeeze_other=isinstance(other, Series), ) def hist( @@ -1333,7 +1333,7 @@ def le( level=level, fill_value=fill_value, axis=axis, - squeeze_other=isinstance(other, (pandas.Series, Series)), + squeeze_other=isinstance(other, Series), ) def lt( @@ -1349,7 +1349,7 @@ def lt( level=level, fill_value=fill_value, axis=axis, - squeeze_other=isinstance(other, (pandas.Series, Series)), + squeeze_other=isinstance(other, Series), ) def map(self, arg, na_action=None) -> Series: # noqa: PR01, RT01, D200 @@ -1483,7 +1483,7 @@ def ne( level=level, fill_value=fill_value, axis=axis, - squeeze_other=isinstance(other, (pandas.Series, Series)), + squeeze_other=isinstance(other, Series), ) def nlargest(self, n=5, keep="first") -> Series: # noqa: PR01, RT01, D200