We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21620ad commit 489cc24Copy full SHA for 489cc24
pandas/tests/indexes/test_multi.py
@@ -99,7 +99,8 @@ def test_where_array_like(self):
99
cond = [False, True]
100
101
for klass in klasses:
102
- f = lambda: i.where(klass(cond))
+ def f():
103
+ return i.where(klass(cond))
104
pytest.raises(NotImplementedError, f)
105
106
def test_repeat(self):
@@ -2415,7 +2416,8 @@ def check(nlevels, with_nulls):
2415
2416
2417
# with a dup
2418
if with_nulls:
- f = lambda a: np.insert(a, 1000, a[0])
2419
+ def f(a):
2420
+ return np.insert(a, 1000, a[0])
2421
labels = list(map(f, labels))
2422
index = MultiIndex(levels=levels, labels=labels)
2423
else:
0 commit comments