title: panda: how to get unsuccessive rows by a list of index
body: <p>I am trying to get multiple rows from a pandas dataframe.</p>
  
  <pre><code>df.iloc[1]
  </code></pre>
  
  <p>could be used get one row, though, following code encounter an error.</p>
  
  <pre><code>df.iloc[1,3,8]
  </code></pre>
  
  <p>the error</p>
  
  <blockquote>
    <p>--------------------------------------------------------------------------- IndexingError                             Traceback (most recent call
    last)  in ()
    ----> 1 df.iloc[1,3,8]</p>
    
    <p>~/anaconda3/envs/tf11/lib/python3.6/site-packages/pandas/core/indexing.py
    in <strong>getitem</strong>(self, key)    1323             except (KeyError,
    IndexError):    1324                 pass
    -> 1325             return self._getitem_tuple(key)    1326         else:    1327             key = com._apply_if_callable(key, self.obj)</p>
    
    <p>~/anaconda3/envs/tf11/lib/python3.6/site-packages/pandas/core/indexing.py
    in _getitem_tuple(self, tup)    1660     def _getitem_tuple(self,
    tup):    1661 
    -> 1662         self._has_valid_tuple(tup)    1663         try:    1664             return self._getitem_lowerdim(tup)</p>
    
    <p>~/anaconda3/envs/tf11/lib/python3.6/site-packages/pandas/core/indexing.py
    in _has_valid_tuple(self, key)
        186         for i, k in enumerate(key):
        187             if i >= self.obj.ndim:
    --> 188                 raise IndexingError('Too many indexers')
        189             if not self._has_valid_type(k, i):
        190                 raise ValueError("Location based indexing can only have [%s] "</p>
    
    <p>IndexingError: Too many indexers</p>
  </blockquote>