title: Salesforce Data into Python (simple-Salesforce or salesforce-bulk)
body: <p>I'm trying to load Salesforce data into a Python dataframe, so we can do all of our manipulations there. simple_salesforce worked with the caveat that we reached the 2,000 limit:</p>
  
  <pre><code>from simple_salesforce import Salesforce as s
  eatpies = sf.query('Select Id from Case')
  attrs = ['Id']
  records = eatpies['records']
  
  data = {}
  
  for rec in records:
      for k in attrs:
          data.setdefault(k, []).append(rec[k])
  
  dframe = pd.DataFrame(data)
  
  print(dframe)
  </code></pre>
  
  <p>Supposedly, salesforce-bulk (<a href="https://pypi.python.org/pypi/salesforce-bulk/1.0.7" rel="nofollow noreferrer">https://pypi.python.org/pypi/salesforce-bulk/1.0.7</a>) is able to bypass this limit, but I can't get further than this:</p>
  
  <pre><code>job = bulk.create_query_job("Case", contentType='CSV')
  batch = bulk.query('select Id, type from Case')
  
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-13-076e14bf245d&gt; in &lt;module&gt;()
  ----&gt; 1 batch = bulk.query('select Id, type from Case')
  
  TypeError: query() missing 1 required positional argument: 'soql'
  </code></pre>
  
  <p>Please help, thanks! If the solution can be done in simple-Salesforce to over-come the Salesforce limit, that would be great, but I couldn't find any solutions via Google.</p>