title: OneHotEncoding Protein Sequences
body: <p>I have an original dataframe of sequences listed below and am trying to use one-hot encoding and then store these in a new dataframe, I am trying to do it with the following code but am not able to store because I get the following output afterwards:</p>
  <p>Code:</p>
  <pre><code>onehot_encoder = OneHotEncoder()
  sequence = np.array(list(x_train['sequence'])).reshape(-1, 1)
  encoded_sequence = onehot_encoder.fit_transform(sequence).toarray()
  encoded_sequence
  </code></pre>
  <p><a href="https://i.stack.imgur.com/7FJgn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7FJgn.png" alt="enter image description here" /></a></p>
  <p>but get error</p>
  <pre><code>ValueError: Wrong number of items passed 12755, placement implies 1
  </code></pre>