title: Pandas: Replacement for .ix
body: <p>Given the update to pandas 0.20.0 and the <a href="http://pandas-docs.github.io/pandas-docs-travis/indexing.html#ix-indexer-is-deprecated" rel="noreferrer">deprecation of <code>.ix</code></a>, I am wondering what the most efficient way to get the same result using the remaining <code>.loc</code> and <code>.iloc</code>.  I just answered <a href="https://stackoverflow.com/questions/43838557/custom-boolean-filtering-in-pandas/43838701#43838701">this question</a>, but the second option (not using <code>.ix</code>) seems inefficient and verbose.</p>
  
  <p>Snippet:</p>
  
  <pre><code>print df.iloc[df.loc[df['cap'].astype(float) &gt; 35].index, :-1]
  </code></pre>
  
  <p>Is this the proper way to go when using both conditional and index position filtering?</p>