<p>我有一系列七个相同长度的数据帧。你知道吗</p>
<p>日期1看起来像:</p>
<pre><code> month day year
0 04 20 2009
1 04 20 09
2 4 20 09
3 4 3 09
4 NaN NaN NaN
5 NaN NaN NaN
6 NaN NaN NaN
7 NaN NaN NaN
8 NaN NaN NaN
...
</code></pre>
<p>日期2看起来像:</p>
<pre><code> month day year
0 NaN NaN NaN
1 NaN NaN NaN
2 NaN NaN NaN
3 NaN NaN NaN
4 Mar 20 2009
5 Mar 20 2009
6 Mar 20 2009
7 Mar 20 2009
8 Mar 20 2009
...
</code></pre>
<p>等等,更新7。我想创建一个数据帧,将它们合并在一起,但合并似乎不适合我。你知道吗</p>
<p>以下是我目前正在做的:</p>
<pre><code>alldates = pd.concat([dates1,dates2,dates3,dates4], axis=0)
return alldates.dropna()
</code></pre>
<p>这是可行的,但一旦我加上date5,date6,date7,它就开始混乱了,因为那些数据帧有一些与alldates具有相同索引值的行。你知道吗</p>
<p>我被这个难住了。我还需要提供什么信息?有没有更优雅的方法来解决这个问题?你知道吗</p>