pandas version of numpy's ones_like
<p>consider <code>pd.Series</code> <code>s</code></p>

<pre><code>s = pd.Series([.4, .5, .6], list('abc'))
s

a    0.4
b    0.5
c    0.6
dtype: float64
</code></pre>

<p>I've done this before to get a series of ones</p>

<pre><code>pd.Series(np.ones_like(s.values), s.index, name=s.name)

a    1.0
b    1.0
c    1.0
dtype: float64
</code></pre>

<p>What is a better way?</p>