title: Adding columns to pandas not working with Django ORM
body: <p>I am trying to add columns to existing pandas DataFrame. The added column gets data using Django ORM. My approaches are like the following:</p>
  <p>1.</p>
  <pre><code>df['name'] = User.objects.get(id=df['id'])
  </code></pre>
  <ol start="2">
  <li></li>
  </ol>
  <pre><code>df['name'] = df.assign(name=lambda x: User.objects.get(x.id))
  </code></pre>
  <p>But for both the approaches, I am getting the following error:</p>
  <pre><code>TypeError: Field 'code' expected a number but got 0     1
  1    18
  Name: code, dtype: int64.
  </code></pre>
  <p><em>The field is expecting a number but getting a pandas Series instead.</em></p>
  <p>How shall I approach this?</p>