The code snippet is as follows:
>>> for c in np.arange(-5, 5):
... lr = LogisticRegression(C=np.int(10**c), random_state=0)
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
ValueError: Integers to negative integer powers are not allowed.
>>>
To fix that error, the for block will be:
... lr = LogisticRegression(C=10**c, random_state=0)
...
>>>