title: Shape mismatch issue with OneHotEndcoder
body: <p>This is my code</p>
  <pre><code>from sklearn import preprocessing
  from sklearn.preprocessing import OneHotEncoder
  labelencoder_X = preprocessing.LabelEncoder()
  X[:,0] = labelencoder_X.fit_transform(X[:,0])
  onehotencoder = OneHotEncoder(categories=[])
  X = onehotencoder.fit_transform(X).toarray()
  </code></pre>
  <p>After trying many times i am not able to solve this error</p>
  <pre><code>ValueError: Shape mismatch: if categories is an array, it has to be of shape (n_features,).
  </code></pre>