<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import pandas as pd
&gt;&gt;&gt; test = list(range(5))
&gt;&gt;&gt; a = pd.Series(test, index=test)
&gt;&gt;&gt; a.index
Int64Index([0, 1, 2, 3, 4], dtype='int64')
&gt;&gt;&gt; 0.5**a.index
Float64Index([0.0, 1.0, 1.41421356237, 1.73205080757, 2.0], dtype='float64')
"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-en">range</span>(<span class="pl-c1">5</span>))
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">test</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">test</span>)
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span>.<span class="pl-s1">index</span>
<span class="pl-v">Int64Index</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'int64'</span>)
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">0.5</span><span class="pl-c1">**</span><span class="pl-s1">a</span>.<span class="pl-s1">index</span>
<span class="pl-v">Float64Index</span>([<span class="pl-c1">0.0</span>, <span class="pl-c1">1.0</span>, <span class="pl-c1">1.41421356237</span>, <span class="pl-c1">1.73205080757</span>, <span class="pl-c1">2.0</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The index doesn't seem to behave properly when it is being raised to the power. It is not giving the correct values. It seems to work well with other operations like multiplication.</p>
<h4 dir="auto">Expected Output</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Float64Index(array([ 1.    ,  0.5   ,  0.25  ,  0.125 ,  0.0625]), dtype='float64')"><pre class="notranslate"><span class="pl-v">Float64Index</span>(<span class="pl-en">array</span>([ <span class="pl-c1">1.</span>    ,  <span class="pl-c1">0.5</span>   ,  <span class="pl-c1">0.25</span>  ,  <span class="pl-c1">0.125</span> ,  <span class="pl-c1">0.0625</span>]), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>)</pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
<p dir="auto">pandas: 0.19.2<br>
nose: None<br>
pip: 9.0.1<br>
setuptools: 27.2.0<br>
Cython: None<br>
numpy: 1.11.3<br>
scipy: 0.18.1<br>
statsmodels: None<br>
xarray: 0.9.1<br>
IPython: 5.1.0<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.0<br>
pytz: 2016.10<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
matplotlib: 1.5.3<br>
openpyxl: None<br>
xlrd: 1.0.0<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.4<br>
boto: None<br>
pandas_datareader: None</p>
</details>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="index = pd.Float64Index(range(1, 11))

expected_pow_values = 2.0**index.values
actual_pow_values = 2.0**index
similar_pow_values = 2.0**np.arange(len(index))

expected_mul_values = 2.0*index.values
actual_mul_values = 2.0*index

other_way_around = index**2.0
same_as = index.values**2.0
"><pre class="notranslate"><span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Float64Index</span>(<span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-c1">11</span>))

<span class="pl-s1">expected_pow_values</span> <span class="pl-c1">=</span> <span class="pl-c1">2.0</span><span class="pl-c1">**</span><span class="pl-s1">index</span>.<span class="pl-s1">values</span>
<span class="pl-s1">actual_pow_values</span> <span class="pl-c1">=</span> <span class="pl-c1">2.0</span><span class="pl-c1">**</span><span class="pl-s1">index</span>
<span class="pl-s1">similar_pow_values</span> <span class="pl-c1">=</span> <span class="pl-c1">2.0</span><span class="pl-c1">**</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">index</span>))

<span class="pl-s1">expected_mul_values</span> <span class="pl-c1">=</span> <span class="pl-c1">2.0</span><span class="pl-c1">*</span><span class="pl-s1">index</span>.<span class="pl-s1">values</span>
<span class="pl-s1">actual_mul_values</span> <span class="pl-c1">=</span> <span class="pl-c1">2.0</span><span class="pl-c1">*</span><span class="pl-s1">index</span>

<span class="pl-s1">other_way_around</span> <span class="pl-c1">=</span> <span class="pl-s1">index</span><span class="pl-c1">**</span><span class="pl-c1">2.0</span>
<span class="pl-s1">same_as</span> <span class="pl-c1">=</span> <span class="pl-s1">index</span>.<span class="pl-s1">values</span><span class="pl-c1">**</span><span class="pl-c1">2.0</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Using the pow '**' operator on an index object results in a behaviour different than when using the '<em>' operator. The pow result implies that the values being used are not index.values, which one would expect given the behaviour of other operators (</em>, -, +, / ...).<br>
This problem only arises when the index object is the second argument.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">expected output would be the result of 2.0**index.values</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<p dir="auto">commit: None<br>
python: 2.7.13.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 10<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.19.1<br>
nose: None<br>
pip: 9.0.1<br>
setuptools: 32.2.0<br>
Cython: None<br>
numpy: 1.12.0rc1<br>
scipy: 0.18.1<br>
statsmodels: 0.8.0rc1<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: 1.4.8<br>
patsy: 0.4.1<br>
dateutil: 2.6.0<br>
pytz: 2016.10<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
matplotlib: 1.5.3<br>
openpyxl: 2.4.1<br>
xlrd: 1.0.0<br>
xlwt: 1.1.2<br>
xlsxwriter: None<br>
lxml: 3.7.0<br>
bs4: None<br>
html5lib: 0.9999999<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: None</p>
</details>