In [1185]: %timeit df2.mul(df1.ix[0], axis=1)
The slowest run took 5.07 times longer than the fastest. This could mean that an intermediate result is being cached
1000 loops, best of 3: 287 µs per loop
In [1186]: %timeit pd.DataFrame(df2.values * df1.values)
The slowest run took 6.31 times longer than the fastest. This could mean that an intermediate result is being cached
10000 loops, best of 3: 98 µs per loop
我想你可以把} ,把它们乘以最后一个^{} :
DataFrames
转换成numpy arrays
,方法是^{时间安排:
你可能正在寻找这样的东西:
相关问题 更多 >
编程相关推荐