How to join two pandas Series into a single one with interleaved values?
<p>I have two pandas.Series...</p>

<pre><code>import pandas as pd
import numpy as np

length = 5
s1 = pd.Series( [1]*length ) # [1, 1, 1, 1, 1]
s2 = pd.Series( [2]*length ) # [2, 2, 2, 2, 2]
</code></pre>

<p>...and I would like to have them joined together in a single Series with the interleaved values from the first 2 series.
Something like: [1, 2, 1, 2, 1, 2, 1, 2, 1, 2]</p>

<p>Here we are:</p>

<pre><code>s1.index = range(0,len(s1)*2,2)
s2.index = range(1,len(s2)*2,2)
interleaved = pd.concat([s1,s2]).sort_index()

idx  values
0    1
1    2
2    1
3    2
4    1
5    2
6    1
7    2
8    1
9    2
</code></pre>

python pandas numpy