title: How to convert List from column to list of DataFrame?
body: <p>I have a DataFrame which contains categories, and I want to split the DataFrame using categories as <code>df_name</code>:</p>
  <pre><code>df_name = df['category'].unique()
  print(sites)
  </code></pre>
  <p>result:</p>
  <pre><code>['df1' 'df2']
  </code></pre>
  <p>after splitting the DataFrame using a loop, I get 2 smaller DataFrames, <code>df1</code> and <code>df2</code>.</p>
  <p>Next, I want to alter the DataFrame. I want to remove column <code>category</code> from <code>df1</code> and <code>df2</code>, using <code>df_name</code>, but got an error. After trying for awhile I think the problem is because <code>df_name</code> is a list.</p>
  <p>How do I convert <code>df_name</code> from</p>
  <pre><code>['df1' 'df2']
  </code></pre>
  <p>to</p>
  <pre><code>[df1 df2]
  </code></pre>
  <p>?</p>