For variables with two categories, do they need to be One Hot Encoded? In my dataset I have a binary variable as either 1 or 0. Do I need to transform that variable in a pipeline for my model or do I leave it as is?
variable = np.array([0,0,0,1,0,1,0]).reshape(-1,1)
ohc = OneHotEncoder()
ohc.fit(variable)