In [15]:
import os,sys
import numpy as np
import pandas as pd
import scipy.stats as stats
from collections import defaultdict
In [8]:
%%timeit
np.random.normal(size=1)
In [9]:
%%timeit
stats.norm().rvs()
In [26]:
ddf = {'a': pd.DataFrame({'a':range(10), 'b':range(10)}),
'b': pd.DataFrame({'a':range(10), 'b':range(10)})
}
narr = np.array([np.array(range(10) + range(10)).reshape(2,10).transpose(),
np.array(range(10) + range(10)).reshape(2,10).transpose()
])
In [27]:
ddf
Out[27]:
In [28]:
narr
Out[28]:
In [ ]: