擅长:python、mysql、java
<p>许多方法来微调这个和它的变化已经被问了很多次。你知道吗</p>
<pre><code>D = df.D.astype(str).str.split(' and ')
idx = df.index.repeat(D.str.len())
df.loc[idx].assign(D=np.concatenate(D).astype(int))
Index_Date A B C D
0 2015-01-31 10 10 we 10
1 2015-02-01 2 3 jk 22
1 2015-02-01 2 3 jk 23
1 2015-02-01 2 3 jk 24
2 2015-02-02 10 60 nm 280
3 2015-02-03 10 100 oi 250
</code></pre>