title: How to create dummy variable for specifc values in a column?
body: <p>I want to create a dummy variable for a specific value in a column.
  Let's say my database looks like this :</p>
  <p><img src="https://i.stack.imgur.com/AFTeR.png" alt="database" /></p>
  <p>I want a dummy variable just for the museums.</p>
  <pre><code>pd.get_dummies (df,['Buildings']) 
  </code></pre>
  <p>gives me a dummy for &quot;cinema&quot;, &quot;school&quot; and &quot;university&quot;. In practice, I could drop the new columns for &quot;cinema&quot;, &quot;school&quot; and &quot;university&quot; but only keep the one for &quot;museum&quot; but what if the variable &quot;buildings&quot; takes a lot of values (more than 100) ? What would be the correct syntax to only select a specific value and create with it a dummy variable ?</p>