Skip to content

summary() fails with the new pandas release #3805

New issue

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

Closed
bersavosh opened this issue Feb 17, 2020 · 2 comments
Closed

summary() fails with the new pandas release #3805

bersavosh opened this issue Feb 17, 2020 · 2 comments

Comments

@bersavosh
Copy link

Pandas 1.0 has been released and the keyword joint_axis is now removed from concat().

This causes pymc3's summary() to fail with the following error:

~/anaconda3/lib/python3.6/site-packages/pymc3/stats.py in summary(trace, varnames, transform, stat_funcs, extend, include_transformed, alpha, start, batches)
    980         rhat_pd = dict2pd(rhat, 'Rhat')
    981         return pd.concat([dforg, n_eff_pd, rhat_pd],
--> 982                          axis=1, join_axes=[dforg.index])
    983 
    984 

TypeError: concat() got an unexpected keyword argument 'join_axes'
@junpenglao
Copy link
Member

Could you please update your pymc3 install to the newest version - this is not a problem in the newer versions as we are using arviz for diagnostic and plotting.

@bersavosh
Copy link
Author

Oh sorry, did not notice that. Will do, thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants