title: separate numerical and categorical variable in pandas datframe
body: <p>I have a huge list of data in spark, and I took its headers only and saved in in the pandas dataframe.</p>
  
  <p>Now I want to make different list out of it to separate categorical and numerical</p>
  
  <pre><code>df2 = df.dtypes
  df3 = pd.DataFrame(df2)
  print(df3)
  </code></pre>
  
  <p><code>df4= df3.filter(df3[1] = 'String')</code> </p>
  
  <p>this statemnet gives error:</p>
  
  <blockquote>
    <p>SyntaxError: keyword can't be an expression</p>
  </blockquote>