擅长:python、mysql、java
<p>会有用的</p>
<pre><code>import pandas as pd
import numpy as np
df = pd.DataFrame()
for i in range(5):
arr = np.random.rand(10)
df[i] = arr
</code></pre>
<p>也许更简单的方法是使用矢量化</p>
<pre><code>arr = np.random.rand(10, 5)
df = pd.DataFrame(arr)
</code></pre>