You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are run on the same machine, with the following pip requirements consistent between the two setups besides pandas 0.12.0 vs 0.13.0rc1:
Cython==0.19.2
Jinja2==2.7.1
MarkupSafe==0.18
Pygments==1.6
Sphinx==1.1.3
argparse==1.2.1
docutils==0.11
ipython==1.0.0
matplotlib==1.3.0
nose==1.3.0
numpy==1.7.1
pyparsing==2.0.1
python-dateutil==2.2
pytz==2013.8
pyzmq==14.0.1
scipy==0.12.0
six==1.4.1
tornado==3.1.1
wsgiref==0.1.2
The text was updated successfully, but these errors were encountered:
In [1]: s = Series(np.arange(4096.))
In [2]: df = DataFrame({ i:s for i in range(4096) })
In [3]: %timeit -n 3 df.apply(lambda x: np.corrcoef(x,s)[0,1])
3 loops, best of 3: 1.13 s per loop
In [4]: %timeit -n 3 df.apply(lambda x: np.corrcoef(x.values,s.values)[0,1])
3 loops, best of 3: 938 ms per loop
before this PR
In [3]: %timeit -n 3 df.apply(lambda x: np.corrcoef(x,s)[0,1])
3 loops, best of 3: 1.53 s per loop
0.12
In [3]: %timeit -n 3 df.apply(lambda x: np.corrcoef(x,s)[0,1])
3 loops, best of 3: 793 ms per loop
In [4]: %timeit -n 3 df.apply(lambda x: np.corrcoef(x.values,s.values)[0,1])
3 loops, best of 3: 812 ms per loop
Here is a small example of a performance regression I've noticed between 0.12 and 0.13rc1:
These are run on the same machine, with the following pip requirements consistent between the two setups besides pandas 0.12.0 vs 0.13.0rc1:
Cython==0.19.2
Jinja2==2.7.1
MarkupSafe==0.18
Pygments==1.6
Sphinx==1.1.3
argparse==1.2.1
docutils==0.11
ipython==1.0.0
matplotlib==1.3.0
nose==1.3.0
numpy==1.7.1
pyparsing==2.0.1
python-dateutil==2.2
pytz==2013.8
pyzmq==14.0.1
scipy==0.12.0
six==1.4.1
tornado==3.1.1
wsgiref==0.1.2
The text was updated successfully, but these errors were encountered: