I want to convert the return type of np.inf to int, by default it returns float type.
I have tried the followings, but both give erros.
int(np.inf)
OverflowError: cannot convert float infinity to integer
(np.inf).astype(int64)
AttributeError: 'float' object has no attribute 'astype'