Skip to content

Commit 2fdf1e2

Browse files
jbrockmendeljreback
authored andcommitted
add missing args, make kwarg explicit (pandas-dev#19691)
1 parent 405ed25 commit 2fdf1e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/indexes/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3943,8 +3943,8 @@ def _evaluate_with_timedelta_like(self, other, op, opstr, reversed=False):
39433943
def _evaluate_with_datetime_like(self, other, op, opstr):
39443944
raise TypeError("can only perform ops with datetime like values")
39453945

3946-
def _evaluate_compare(self, op):
3947-
raise base.AbstractMethodError(self)
3946+
def _evaluate_compare(self, other, op):
3947+
raise com.AbstractMethodError(self)
39483948

39493949
@classmethod
39503950
def _add_comparison_methods(cls):

pandas/core/internals.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3569,8 +3569,8 @@ def reduction(self, f, axis=0, consolidate=True, transposed=False,
35693569
placement=np.arange(len(values)))],
35703570
axes[0])
35713571

3572-
def isna(self, **kwargs):
3573-
return self.apply('apply', **kwargs)
3572+
def isna(self, func, **kwargs):
3573+
return self.apply('apply', func=func, **kwargs)
35743574

35753575
def where(self, **kwargs):
35763576
return self.apply('where', **kwargs)

0 commit comments

Comments
 (0)