How do I one-hot encode one column of a pandas dataframe?
<p>I'm trying to one-hot encode one column of a dataframe.</p>

<pre><code>enc = OneHotEncoder()
minitable = enc.fit_transform(df["ids"])
</code></pre>

<p>But I'm getting</p>

<blockquote>
  <p>DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17
  and willraise ValueError in 0.19.</p>
</blockquote>

<p>Is there a workaround for this?</p>