We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(1000, 300)) df.corr(method="kendall") # 21.6 s ± 686 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
DataFrame.corr(method="kendall") doesn't scale particularly well, perhaps because it's the only named correlation method that isn't Cythonized at the moment (we just call kendalltau from scipy repeatedly in a Python for loop: https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L7454). It may be worthwhile to try to implement something more efficient within _libs/algos.pyx.
DataFrame.corr(method="kendall")
kendalltau
scipy
_libs/algos.pyx
Relevant discussion: #28151
The text was updated successfully, but these errors were encountered:
take
Sorry, something went wrong.
lithomas1
Successfully merging a pull request may close this issue.
DataFrame.corr(method="kendall")
doesn't scale particularly well, perhaps because it's the only named correlation method that isn't Cythonized at the moment (we just callkendalltau
fromscipy
repeatedly in a Python for loop: https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L7454). It may be worthwhile to try to implement something more efficient within_libs/algos.pyx
.Relevant discussion: #28151
The text was updated successfully, but these errors were encountered: