<p dir="auto">Doing a crosstab on two Series with the same name throws an error.  This is due to a dictionary (indexed by the series name) in the crosstab function being used to store the data.  Not sure if this is a feature or a bug, but a default similar to the behavior when Series without name are compared would be desirable to me.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [56]:

s1 = pd.Series([1,1,2,2,3,3], name='s')
s2 = pd.Series([1,1,1,2,2,2], name='s')

pd.crosstab(s1, s2)
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
&lt;ipython-input-56-9d16b2abac9f&gt; in &lt;module&gt;()
      2 s2 = pd.Series([1,1,1,2,2,2], name='s')
      3 
----&gt; 4 pd.crosstab(s1, s2)

/cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/tools/pivot.pyc in crosstab(rows, cols, values, rownames, colnames, aggfunc, margins, dropna)
    368         df['__dummy__'] = 0
    369         table = df.pivot_table('__dummy__', rows=rownames, cols=colnames,
--&gt; 370                                aggfunc=len, margins=margins, dropna=dropna)
    371         return table.fillna(0).astype(np.int64)
    372     else:

/cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/tools/pivot.pyc in pivot_table(data, values, rows, cols, aggfunc, fill_value, margins, dropna)
    108         to_unstack = [agged.index.names[i]
    109                       for i in range(len(rows), len(keys))]
--&gt; 110         table = agged.unstack(to_unstack)
    111 
    112     if not dropna:

/cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/frame.pyc in unstack(self, level)
   3339         &quot;&quot;&quot;
   3340         from pandas.core.reshape import unstack
-&gt; 3341         return unstack(self, level)
   3342 
   3343     #----------------------------------------------------------------------

/cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/reshape.pyc in unstack(obj, level)
    416 def unstack(obj, level):
    417     if isinstance(level, (tuple, list)):
--&gt; 418         return _unstack_multiple(obj, level)
    419 
    420     if isinstance(obj, DataFrame):

/cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/reshape.pyc in _unstack_multiple(data, clocs)
    275     index = data.index
    276 
--&gt; 277     clocs = [index._get_level_number(i) for i in clocs]
    278 
    279     rlocs = [i for i in range(index.nlevels) if i not in clocs]

/cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/index.pyc in _get_level_number(self, level)
   2197         except ValueError:
   2198             if not isinstance(level, int):
-&gt; 2199                 raise KeyError('Level %s not found' % str(level))
   2200             elif level &lt; 0:
   2201                 level += self.nlevels

KeyError: 'Level s not found'"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">56</span>]:

<span class="pl-s1">s1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>)
<span class="pl-s1">s2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>)

<span class="pl-s1">pd</span>.<span class="pl-en">crosstab</span>(<span class="pl-s1">s1</span>, <span class="pl-s1">s2</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">KeyError</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">56</span><span class="pl-c1">-</span><span class="pl-c1">9</span><span class="pl-s1">d16b2abac9f</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">2</span> <span class="pl-s1">s2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</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">&gt;</span> <span class="pl-c1">4</span> <span class="pl-s1">pd</span>.<span class="pl-en">crosstab</span>(<span class="pl-s1">s1</span>, <span class="pl-s1">s2</span>)

<span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</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-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tools</span><span class="pl-c1">/</span><span class="pl-s1">pivot</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">crosstab</span>(<span class="pl-s1">rows</span>, <span class="pl-s1">cols</span>, <span class="pl-s1">values</span>, <span class="pl-s1">rownames</span>, <span class="pl-s1">colnames</span>, <span class="pl-s1">aggfunc</span>, <span class="pl-s1">margins</span>, <span class="pl-s1">dropna</span>)
    <span class="pl-c1">368</span>         <span class="pl-s1">df</span>[<span class="pl-s">'__dummy__'</span>] <span class="pl-c1">=</span> <span class="pl-c1">0</span>
    <span class="pl-c1">369</span>         <span class="pl-s1">table</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">pivot_table</span>(<span class="pl-s">'__dummy__'</span>, <span class="pl-s1">rows</span><span class="pl-c1">=</span><span class="pl-s1">rownames</span>, <span class="pl-s1">cols</span><span class="pl-c1">=</span><span class="pl-s1">colnames</span>,
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">370</span>                                <span class="pl-s1">aggfunc</span><span class="pl-c1">=</span><span class="pl-s1">len</span>, <span class="pl-s1">margins</span><span class="pl-c1">=</span><span class="pl-s1">margins</span>, <span class="pl-s1">dropna</span><span class="pl-c1">=</span><span class="pl-s1">dropna</span>)
    <span class="pl-c1">371</span>         <span class="pl-k">return</span> <span class="pl-s1">table</span>.<span class="pl-en">fillna</span>(<span class="pl-c1">0</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int64</span>)
    <span class="pl-c1">372</span>     <span class="pl-s1">else</span>:

<span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</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-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tools</span><span class="pl-c1">/</span><span class="pl-s1">pivot</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">pivot_table</span>(<span class="pl-s1">data</span>, <span class="pl-s1">values</span>, <span class="pl-s1">rows</span>, <span class="pl-s1">cols</span>, <span class="pl-s1">aggfunc</span>, <span class="pl-s1">fill_value</span>, <span class="pl-s1">margins</span>, <span class="pl-s1">dropna</span>)
    <span class="pl-c1">108</span>         <span class="pl-s1">to_unstack</span> <span class="pl-c1">=</span> [<span class="pl-s1">agged</span>.<span class="pl-s1">index</span>.<span class="pl-s1">names</span>[<span class="pl-s1">i</span>]
    <span class="pl-c1">109</span>                       <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">rows</span>), <span class="pl-en">len</span>(<span class="pl-s1">keys</span>))]
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">110</span>         <span class="pl-s1">table</span> <span class="pl-c1">=</span> <span class="pl-s1">agged</span>.<span class="pl-en">unstack</span>(<span class="pl-s1">to_unstack</span>)
    <span class="pl-c1">111</span> 
    <span class="pl-c1">112</span>     <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">dropna</span>:

<span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</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-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</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">frame</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">unstack</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>)
   <span class="pl-c1">3339</span>         """
   <span class="pl-c1">3340</span>         <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">reshape</span> <span class="pl-s1">import</span> <span class="pl-s1">unstack</span>
<span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3341</span>         <span class="pl-s1">return</span> <span class="pl-s1">unstack</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>)
   <span class="pl-c1">3342</span> 
   <span class="pl-c1">3343</span>     <span class="pl-c">#----------------------------------------------------------------------</span>

<span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</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-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</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">reshape</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">unstack</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">level</span>)
    <span class="pl-c1">416</span> <span class="pl-s1">def</span> <span class="pl-en">unstack</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">level</span>):
    <span class="pl-c1">417</span>     <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">level</span>, (<span class="pl-s1">tuple</span>, <span class="pl-s1">list</span>)):
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">418</span>         <span class="pl-s1">return</span> <span class="pl-en">_unstack_multiple</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">level</span>)
    <span class="pl-c1">419</span> 
    <span class="pl-c1">420</span>     <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">obj</span>, <span class="pl-v">DataFrame</span>):

<span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</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-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</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">reshape</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_unstack_multiple</span>(<span class="pl-s1">data</span>, <span class="pl-s1">clocs</span>)
    <span class="pl-c1">275</span>     <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-s1">index</span>
    <span class="pl-c1">276</span> 
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">277</span>     <span class="pl-s1">clocs</span> <span class="pl-c1">=</span> [<span class="pl-s1">index</span>.<span class="pl-en">_get_level_number</span>(<span class="pl-s1">i</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">clocs</span>]
    <span class="pl-c1">278</span> 
    <span class="pl-c1">279</span>     <span class="pl-s1">rlocs</span> <span class="pl-c1">=</span> [<span class="pl-s1">i</span> <span class="pl-s1">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">index</span>.<span class="pl-s1">nlevels</span>) <span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">clocs</span>]

<span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</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-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</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_number</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>)
   <span class="pl-c1">2197</span>         <span class="pl-s1">except</span> <span class="pl-v">ValueError</span>:
   <span class="pl-c1">2198</span>             <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">level</span>, <span class="pl-s1">int</span>):
<span class="pl-c1">-&gt;</span> <span class="pl-c1">2199</span>                 <span class="pl-k">raise</span> <span class="pl-v">KeyError</span>(<span class="pl-s">'Level %s not found'</span> <span class="pl-c1">%</span> <span class="pl-en">str</span>(<span class="pl-s1">level</span>))
   <span class="pl-c1">2200</span>             <span class="pl-s1">elif</span> <span class="pl-s1">level</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">0</span>:
   <span class="pl-c1">2201</span>                 <span class="pl-s1">level</span> <span class="pl-c1">+=</span> <span class="pl-s1">self</span>.<span class="pl-s1">nlevels</span>

<span class="pl-v">KeyError</span>: <span class="pl-s">'Level s not found'</span></pre></div>
<p dir="auto">Pandas 0.10.1.<br>
It's throwing a FutureWarning "set_index with inplace=True will return None from pandas 0.11 onward" when I call set_index, <strong>_even though I already changed my code to be compliant with that change so the warning is not relevant</strong>_. It prints that warning anytime you call the function with inplace=True even if you are not using the return value. As it stands, the warning is largely useless -- if I call set_index in 20 places and I fixed 19 of them to not use the return code but missed the last one; then the warning is thrown on the first call (which I fixed) but not on the 20th call (which I didn't fix), so it doesn't help anyone find places to fix in their code.</p>
<p dir="auto">This warning is "harmless" in the sense it doesn't crash my code; but it is harmful in the sense that it clutters my error/warning log and therefore causing false positives in our infrastructure to notify us on job warnings/errors.</p>
<p dir="auto">Ideally, pandas should only print the warning if its relevant to you (IE, you haven't yet fixed your code) but I realize that's hard. If that's not possible, then can we have some sort of global option to disable that warning?</p>