# How to print and save rhat and ess for pyStan 3.5?

**URL:** <https://discourse.mc-stan.org/t/how-to-print-and-save-rhat-and-ess-for-pystan-3-5/28869>\
**Category:** General\
**Created:** [September 16, 2022, 2:34pm UTC](https://discourse.mc-stan.org/t/how-to-print-and-save-rhat-and-ess-for-pystan-3-5/28869 "2022-09-16T14:34:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hahawalk](https://avatars.discourse-cdn.com/v4/letter/h/b9bd4f/32.png) [@hahawalk](https://discourse.mc-stan.org/u/hahawalk)\
**Post date:** [September 16, 2022, 2:34pm UTC](https://discourse.mc-stan.org/t/how-to-print-and-save-rhat-and-ess-for-pystan-3-5/28869/1 "2022-09-16T14:34:51Z")

</div>

Hi! I am new to pyStan3.5. I noticed that the summary of the fitted model does not include rhat and ess anymore. Are there any other functions to print and save these two quantities? Thanks!

---

<div class="post-metadata">

**Author:** ![ahartikainen](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/ahartikainen/32/321_2.png) [@ahartikainen](https://discourse.mc-stan.org/u/ahartikainen)\
**Post date:** [September 16, 2022, 5:36pm UTC](https://discourse.mc-stan.org/t/how-to-print-and-save-rhat-and-ess-for-pystan-3-5/28869/2 "2022-09-16T17:36:17Z")

</div>

Have you tried ArviZ?

[https://python.arviz.org/en/latest/index.html](https://python.arviz.org/en/latest/index.html)

```
import arviz as az

# pandas DataFrame
summary = az.summary(fit)
print(summary)

```

---

<div class="post-metadata">

**Author:** ![hahawalk](https://avatars.discourse-cdn.com/v4/letter/h/b9bd4f/32.png) [@hahawalk](https://discourse.mc-stan.org/u/hahawalk)\
**Post date:** [September 17, 2022, 7:26pm UTC](https://discourse.mc-stan.org/t/how-to-print-and-save-rhat-and-ess-for-pystan-3-5/28869/3 "2022-09-17T19:26:07Z")

</div>

Yeah it works! Thanks!
