The following markdown:
```{python}
%%stata
sysuse auto
mean trunk, over(rep78)
```
Yields this output:
sysuse auto
mean trunk, over(rep78)
. sysuse auto
(1978 automobile data)
. mean trunk, over(rep78)
Mean estimation Number of obs = 69
---------------------------------------------------------------
| Mean Std. err. [95% conf. interval]
--------------+------------------------------------------------
c.trunk@rep78 |
1 | 8.5 1.5 5.506797 11.4932
2 | 14.625 1.762076 11.10883 18.14117
3 | 15.26667 .6555393 13.95856 16.57478
4 | 13.5 1.242625 11.02038 15.97962
5 | 11.45455 .8018573 9.854464 13.05463
---------------------------------------------------------------
.