Closed
Description
In refurb, FURB118, lambda x: x[:, 0]
should be itemgetter((slice(None), 0))
, instead of itemgetter((:, 0))
# xx.py
import numpy as np
xs = np.array([[1, 2, 3]])
xm = map(lambda x: x[:, 0], xs)
xx.py:
3:10 FURB118 [*] Use `operator.itemgetter((:, 0))` instead of defining a lambda
I guess (:, 0)
is not a valid tuple.