title: Pass pandas data frame column to post API request
body: <p>I try to retrieve text data from an api works with post request by passing ids as json of list of strings, works well with the sample IDs
  But I need to pass ids from pandas dataframe column has type float, get ID not found always.</p>
  <p>Sample that works well</p>
  <pre><code>enter code here
  d =  [&quot;1055620304465215616&quot; , &quot;1057418989293485952&quot;]
  x = requests.post(url , data = json.dumps(d) )
  print(x.json())
  </code></pre>
  <p>pass from dataframe that doesn't work</p>
  <pre><code>def convert(id):
  l = []
  id = str(id)
  l.append(id)
  return l
  
  data['new'] = data['id'].apply(convert)  
  data.head()
  
  def request_function(j):
      x = requests.post(url, data = json.dumps(j)) 
      return x.json()
  
  data['text']  = data['new'].apply(request_function)
  </code></pre>
  <p>data['text'] column  get {'detail': 'ID: 1.18e+18 not found'} with different ids</p>