NLP, Neural Networks, Python, TensorFlow, Deep Learning.
in order to get the dummy version we need to pass drop_first=True. Read more: here we see there is some redundancy in one-hot encoding the n-dimensional vector can be represented in n-1 dimensional long. In the above example if any two cities are 0 then it is obvious the third one is 1 hence the