title: Select only categorical columns from a dataframe?
body: <p>I know how to select numeric fields from one dataframe to another.</p>
  
  <pre><code>df1 = df.select_dtypes(include=[np.number])
  </code></pre>
  
  <p>I was thinking there should be a similar way to select categorical fields, as such.</p>
  
  <pre><code>df2 = df.select_dtypes(include=['category'])
  </code></pre>
  
  <p>Of course that doesn't work.  Is there a way to do this?  I have a data frame with float64 and object datatypes.  </p>
  
  <p>Also, I'm trying to split these into continuous and discrete types, and hopefully bin the continuous data points.  The line below seems to work fine.</p>
  
  <pre><code>df1['price_bins'] = pd.cut(df1.PRICE, bins=15)
  </code></pre>
  
  <p>Is this the preferred way to do this kind of thing?</p>