title: Return Pandas dataframe as JSONP response in Python Flask
body: <p>I want to return data as <code>JSONP</code>response in <code>Flask</code>.</p>
  
  <p>The data comes from a <code>Pandas dataframe</code> and I can return it as <code>JSON</code> with the following line:</p>
  
  <pre><code>json_data = dataframe.to_json(orient='values')
  return json_data
  </code></pre>
  
  <p>Works fine and I get the data, which looks like this:</p>
  
  <blockquote>
    <p>[[1487310600000,1038,1042,1038,1038,-2.243,6.8933],[1487310900000,1042,1042,1038,1038,-1.3626,4.3058],[1487311200000,1042,1042,1038,1038,-1.4631,17.8684]]</p>
  </blockquote>
  
  <p>But I need it as <code>JSONP</code>, so I use the following code:</p>
  
  <pre><code>from flask_jsonpify import jsonpify
  json_data = dataframe.to_json(orient='values')
  return jsonpify(json_data)
  </code></pre>
  
  <p>And it gives me the data, but with double quotes:</p>
  
  <blockquote>
    <p>"[[1487310600000,1038,1042,1038,1038,-2.243,6.8933],[1487310900000,1042,1042,1038,1038,-1.3626,4.3058],[1487311200000,1042,1042,1038,1038,-1.4631,17.8684]]"</p>
  </blockquote>
  
  <p>How can I get the <code>JSONP</code> response in <code>Flask</code> without double quotes?
  Many thanks in advance.</p>