the correct way to access elements in a pandas pivot table
<p>I have been trying to access elements from the following pivot table using the pandas dataframe slicing .IX notation. however I am getting errors: </p>

<blockquote>
  <p>No Key.</p>
</blockquote>

<pre><code>pivot = c.pivot("date","stock_name","close").resample("A",how="ohlc")
pt = pd.DataFrame(pivot,index=pivot.index.year)
pt
</code></pre>

<p>What is the correct way to slice out only one or more rows and or columns from a pandas pivot table?</p>

<p>For example if I just want the prices for the year <code>2016</code> for <code>Billabong</code>?</p>

<pre><code>pivot["2016-12-31"]["BBG"]
</code></pre>