title: Pandas and Cassandra: numpy array format incompatibility
body: <p>I'm using the Python cassandra driver to connect and query our Cassandra cluster.</p>
  
  <p>I want to manipulate my data via Pandas, there is an area in the documentation for the cassandra driver that mentions this exactly:
  <a href="https://datastax.github.io/python-driver/api/cassandra/protocol.html">https://datastax.github.io/python-driver/api/cassandra/protocol.html</a></p>
  
  <blockquote>
    <p>NumpyProtocolHander: deserializes results directly into NumPy arrays.
    This facilitates efficient integration with analysis toolkits such as
    Pandas.</p>
  </blockquote>
  
  <p>Following the above instructions and doing a SELECT query in Cassandra, I can see the output (via the type() function) as a:</p>
  
  <pre><code>&lt;class 'cassandra.cluster.ResultSet'&gt;
  </code></pre>
  
  <p>Iterating through the results, this what printing a row comes up as:</p>
  
  <pre><code>{u'reversals_rejected': array([0, 0]), u'revenue': array([ 0, 10]), u'reversals_revenue': array([0, 0]), u'rejected': array([3, 1]), u'impressions_positive': array([3, 3]), u'site_user_id': array([226226, 354608], dtype=int32), u'error': array([0, 0]), u'impressions_negative': array([0, 0]), u'accepted': array([0, 2])}
  </code></pre>
  
  <p>(I've limited the query results, I'm working with much larger amounts of data - hence wanting to use numpy and pandas).</p>
  
  <p>My knowledge of Pandas is limited, I attempted to run very basic functionalities:</p>
  
  <pre><code>rslt = cassandraSession.execute("SELECT accepted FROM table")
  
  test = rslt[["accepted"]].head(1)
  </code></pre>
  
  <p>This outputs the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/UserStats.py", line 27, in &lt;module&gt;
      test = rslt[["accepted"]].head(1)
    File "cassandra/cluster.py", line 3380, in cassandra.cluster.ResultSet.__getitem__ (cassandra/cluster.c:63998)
  TypeError: list indices must be integers, not list
  </code></pre>
  
  <p>I understand the error, I just don't know how to "transition" from this supposed numpy array to being able to use Pandas.</p>