title: Python: Cursor 'NoneType' object has no attribute
body: <p>I am trying to play around with this simple sql query using cursor:</p>
  
  <pre><code>import jaydebeapi,pandas as pd
  
  conn = &lt;connection to TeraData&gt;
  cursor = conn.cursor()
  sql = ("Select top 10 * from Car_Sales")
  data = cursor.execute(sql)
  print(data.query)
  row = data.fetchone()
  #rows = data.fetchall()
  print(row)
  </code></pre>
  
  <p>Error I am getting is:</p>
  
  <p>AttributeError: 'NoneType' object has no attribute 'fetchone'</p>
  
  <p>It has been couple hours trying to find the issue but not getting anywhere on this. Looked different resources online but still the issue remains.</p>
  
  <p>Please let me know where am I going wrong?</p>
  
  <p>Update:</p>
  
  <p>When I executed the same query in Pandas:</p>
  
  <pre><code>pd.read_sql_query('select top 10 * from  Car_Sales',conn)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Car_Sales
  0 112
  1 77
  2 226
  3 990
  4 552
  5 887
  </code></pre>