title: Pandas dataframe: what is the correct use of pandas index get_loc?
body: <p>I see in the documentation for <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.get_loc.html" rel="nofollow noreferrer">get_loc</a> that it returns:</p>
  <blockquote>
  <p>int if unique index, slice if monotonic index, else mask</p>
  </blockquote>
  <p>What indexing method do you use this return type with when accessing the dataframe? <code>iloc</code>, <code>loc</code> or <code>[]</code></p>