I want to calculate the odds ratio between 2 features, but I got different results as follows:
import numpy as np x= [1,2,3,2,1] y= [1,0,1,0,1] x1 = np.array(x).r