<p dir="auto">In addtion, there is a memory leak. Repeatedly <code class="notranslate">eval</code>ing <code class="notranslate">big.values</code> eats up the amount of RAM taken up by the array.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from pandas import DataFrame, concat
from numpy.random import randint, randn
from string import ascii_letters as letters
ncols = 16
nrows = 1e7
letters = list(letters)
df = DataFrame(randn(nrows, ncols), columns=letters[:ncols])
col = DataFrame(randint(1, size=nrows), columns=[letters[ncols]])
big = concat([df, col], axis=1)
big.values  # very slow and leaky"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pandas</span> <span class="pl-k">import</span> <span class="pl-v">DataFrame</span>, <span class="pl-s1">concat</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">random</span> <span class="pl-k">import</span> <span class="pl-s1">randint</span>, <span class="pl-s1">randn</span>
<span class="pl-k">from</span> <span class="pl-s1">string</span> <span class="pl-k">import</span> <span class="pl-s1">ascii_letters</span> <span class="pl-k">as</span> <span class="pl-s1">letters</span>
<span class="pl-s1">ncols</span> <span class="pl-c1">=</span> <span class="pl-c1">16</span>
<span class="pl-s1">nrows</span> <span class="pl-c1">=</span> <span class="pl-c1">1e7</span>
<span class="pl-s1">letters</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">letters</span>)
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-v">DataFrame</span>(<span class="pl-en">randn</span>(<span class="pl-s1">nrows</span>, <span class="pl-s1">ncols</span>), <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">letters</span>[:<span class="pl-s1">ncols</span>])
<span class="pl-s1">col</span> <span class="pl-c1">=</span> <span class="pl-v">DataFrame</span>(<span class="pl-en">randint</span>(<span class="pl-c1">1</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s1">nrows</span>), <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s1">letters</span>[<span class="pl-s1">ncols</span>]])
<span class="pl-s1">big</span> <span class="pl-c1">=</span> <span class="pl-en">concat</span>([<span class="pl-s1">df</span>, <span class="pl-s1">col</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-s1">big</span>.<span class="pl-s1">values</span>  <span class="pl-c"># very slow and leaky</span></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df_param.index.levels[3]
&gt;&gt;&gt; Index([u'a', u't', u't_anti', u'v_anti', u'v_pro', u'v_stop'], dtype='object')
df_param.xs(u'a', level=3)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-103-99e9d1eaffc4&gt; in &lt;module&gt;()
----&gt; 1 df_param.xs(u'a', level=3)

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/generic.pyc in xs(self, key, axis, level, copy, drop_level)
   1278             if axis == 1 and loc_is_slice:
   1279                 indexer = slice(None), indexer
-&gt; 1280             result = self.ix[indexer]
   1281             setattr(result, result._get_axis_name(axis), new_ax)
   1282             return result

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in __getitem__(self, key)
     52                 pass
     53 
---&gt; 54             return self._getitem_tuple(key)
     55         else:
     56             return self._getitem_axis(key, axis=0)

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_tuple(self, tup)
    595     def _getitem_tuple(self, tup):
    596         try:
--&gt; 597             return self._getitem_lowerdim(tup)
    598         except IndexingError:
    599             pass

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_lowerdim(self, tup)
    690                     raise e1
    691                 try:
--&gt; 692                     loc = ax0.get_loc(tup[0])
    693                 except KeyError:
    694                     raise e1

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/index.pyc in get_loc(self, key)
   3096                 return result
   3097         else:
-&gt; 3098             return self._get_level_indexer(key, level=0)
   3099 
   3100     def get_loc_level(self, key, level=0, drop_level=True):

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/index.pyc in _get_level_indexer(self, key, level)
   3233     def _get_level_indexer(self, key, level=0):
   3234         level_index = self.levels[level]
-&gt; 3235         loc = level_index.get_loc(key)
   3236         labels = self.labels[level]
   3237 

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/index.pyc in get_loc(self, key)
   1015         loc : int if unique index, possibly slice or mask if not
   1016         
-&gt; 1017         return self._engine.get_loc(_values_from_object(key))
   1018 
   1019     def get_value(self, series, key):

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3620)()

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3294)()

TypeError: "><pre class="notranslate"><span class="pl-s1">df_param</span>.<span class="pl-s1">index</span>.<span class="pl-s1">levels</span>[<span class="pl-c1">3</span>]
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-v">Index</span>([<span class="pl-s">u'a'</span>, <span class="pl-s">u't'</span>, <span class="pl-s">u't_anti'</span>, <span class="pl-s">u'v_anti'</span>, <span class="pl-s">u'v_pro'</span>, <span class="pl-s">u'v_stop'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>)
<span class="pl-s1">df_param</span>.<span class="pl-en">xs</span>(<span class="pl-s">u'a'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">3</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">TypeError</span>                                 <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">103</span><span class="pl-c1">-</span><span class="pl-c1">99e9</span><span class="pl-s1">d1eaffc4</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">df_param</span>.<span class="pl-en">xs</span>(<span class="pl-s">u'a'</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">3</span>)

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">generic</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">xs</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">level</span>, <span class="pl-s1">copy</span>, <span class="pl-s1">drop_level</span>)
   <span class="pl-c1">1278</span>             <span class="pl-k">if</span> <span class="pl-s1">axis</span> <span class="pl-c1">==</span> <span class="pl-c1">1</span> <span class="pl-c1">and</span> <span class="pl-s1">loc_is_slice</span>:
   <span class="pl-c1">1279</span>                 <span class="pl-s1">indexer</span> <span class="pl-c1">=</span> <span class="pl-en">slice</span>(<span class="pl-c1">None</span>), <span class="pl-s1">indexer</span>
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1280</span>             <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">ix</span>[<span class="pl-s1">indexer</span>]
   <span class="pl-c1">1281</span>             <span class="pl-en">setattr</span>(<span class="pl-s1">result</span>, <span class="pl-s1">result</span>.<span class="pl-en">_get_axis_name</span>(<span class="pl-s1">axis</span>), <span class="pl-s1">new_ax</span>)
   <span class="pl-c1">1282</span>             <span class="pl-k">return</span> <span class="pl-s1">result</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexing</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">__getitem__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>)
     <span class="pl-c1">52</span>                 <span class="pl-s1">pass</span>
     <span class="pl-c1">53</span> 
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">54</span>             <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_getitem_tuple</span>(<span class="pl-s1">key</span>)
     <span class="pl-c1">55</span>         <span class="pl-k">else</span>:
     <span class="pl-c1">56</span>             <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_getitem_axis</span>(<span class="pl-s1">key</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexing</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_getitem_tuple</span>(<span class="pl-s1">self</span>, <span class="pl-s1">tup</span>)
    <span class="pl-c1">595</span>     <span class="pl-k">def</span> <span class="pl-en">_getitem_tuple</span>(<span class="pl-s1">self</span>, <span class="pl-s1">tup</span>):
    <span class="pl-c1">596</span>         <span class="pl-k">try</span>:
<span class="pl-c1">-</span><span class="pl-c1">-&gt;</span> <span class="pl-c1">597</span>             <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_getitem_lowerdim</span>(<span class="pl-s1">tup</span>)
    <span class="pl-c1">598</span>         <span class="pl-k">except</span> <span class="pl-v">IndexingError</span>:
    <span class="pl-c1">599</span>             <span class="pl-s1">pass</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexing</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_getitem_lowerdim</span>(<span class="pl-s1">self</span>, <span class="pl-s1">tup</span>)
    <span class="pl-c1">690</span>                     <span class="pl-k">raise</span> <span class="pl-s1">e1</span>
    <span class="pl-c1">691</span>                 <span class="pl-k">try</span>:
<span class="pl-c1">-</span><span class="pl-c1">-&gt;</span> <span class="pl-c1">692</span>                     <span class="pl-s1">loc</span> <span class="pl-c1">=</span> <span class="pl-s1">ax0</span>.<span class="pl-en">get_loc</span>(<span class="pl-s1">tup</span>[<span class="pl-c1">0</span>])
    <span class="pl-c1">693</span>                 <span class="pl-k">except</span> <span class="pl-v">KeyError</span>:
    <span class="pl-c1">694</span>                     <span class="pl-s1">raise</span> <span class="pl-s1">e1</span>

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">get_loc</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>)
   <span class="pl-c1">3096</span>                 <span class="pl-k">return</span> <span class="pl-s1">result</span>
   <span class="pl-c1">3097</span>         <span class="pl-s1">else</span>:
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3098</span>             <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_level_indexer</span>(<span class="pl-s1">key</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
   <span class="pl-c1">3099</span> 
   <span class="pl-c1">3100</span>     <span class="pl-k">def</span> <span class="pl-en">get_loc_level</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">drop_level</span><span class="pl-c1">=</span><span class="pl-c1">True</span>):

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_get_level_indexer</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">level</span>)
   <span class="pl-c1">3233</span>     <span class="pl-k">def</span> <span class="pl-en">_get_level_indexer</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">0</span>):
   <span class="pl-c1">3234</span>         <span class="pl-s1">level_index</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">levels</span>[<span class="pl-s1">level</span>]
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3235</span>         <span class="pl-s1">loc</span> <span class="pl-c1">=</span> <span class="pl-s1">level_index</span>.<span class="pl-en">get_loc</span>(<span class="pl-s1">key</span>)
   <span class="pl-c1">3236</span>         <span class="pl-s1">labels</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">labels</span>[<span class="pl-s1">level</span>]
   <span class="pl-c1">3237</span> 

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">get_loc</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>)
   <span class="pl-c1">1015</span>         <span class="pl-s1">loc</span> : <span class="pl-s1">int</span> <span class="pl-k">if</span> <span class="pl-s1">unique</span> <span class="pl-s1">index</span>, <span class="pl-s1">possibly</span> <span class="pl-s1">slice</span> <span class="pl-c1">or</span> <span class="pl-s1">mask</span> <span class="pl-k">if</span> <span class="pl-c1">not</span>
   <span class="pl-c1">1016</span>         
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1017</span>         <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_engine</span>.<span class="pl-en">get_loc</span>(<span class="pl-en">_values_from_object</span>(<span class="pl-s1">key</span>))
   <span class="pl-c1">1018</span> 
   <span class="pl-c1">1019</span>     <span class="pl-k">def</span> <span class="pl-en">get_value</span>(<span class="pl-s1">self</span>, <span class="pl-s1">series</span>, <span class="pl-s1">key</span>):

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">so</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">index</span>.<span class="pl-v">IndexEngine</span>.<span class="pl-en">get_loc</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">c</span>:<span class="pl-c1">3620</span>)()

<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">ipython</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">so</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">index</span>.<span class="pl-v">IndexEngine</span>.<span class="pl-en">get_loc</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">c</span>:<span class="pl-c1">3294</span>)()

<span class="pl-v">TypeError</span>: </pre></div>
<p dir="auto">Am I using it correctly or is this supposed to work like that?</p>