Skip to content

Commit c38b168

Browse files
committed
Fix lint check
1 parent 4db9a2f commit c38b168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asv_bench/benchmarks/groupby.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class ApplyDictReturn(object):
1616
def setup(self):
1717
self.labels = np.arange(1000).repeat(10)
1818
self.data = Series(np.random.randn(len(self.labels)))
19-
self.f = lambda x: {'first': x.values[0], 'last': x.values[(-1)]}
2019

2120
def time_groupby_apply_dict_return(self):
22-
self.data.groupby(self.labels).apply(self.f)
21+
self.data.groupby(self.labels).apply(lambda x: {'first': x.values[0],
22+
'last': x.values[-1]})
2323

2424

2525
class Apply(object):

0 commit comments

Comments
 (0)