Skip to content

summary() fails with the new pandas release #3805

Closed
@bersavosh

Description

@bersavosh

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions