I have a column named
Street that has 2 values: Paved and Gravel. Here is what
print(train[binary_columns].unique().tolist()) gives me:
I want to encode these values in binary like this:
df['Street'] = df['Street'].replace(['Pave', 'Grvl'], [1, 0])
But I wonder if this is a good idea. Wouldn't the computer interpret this as
Pave > Grvl? How does the computer differentiate between binary and integer encoding?