Running the example on python 3.9 and Numpy Version: 1.21.5
import numpy as np
from pyitlib import discrete_random_variable as drv
drv.entropy(['a', 'b', 'a', 'b'], base=np.exp(1))
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Running the example on python 3.9 and Numpy Version: 1.21.5
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''