Save .dta files in python

后端 未结 3 627
無奈伤痛
無奈伤痛 2020-12-28 20:24

I\'m wondering if anyone knows a Python package that allows you to save numpy arrays/recarrays in the .dta format of the statistical data analysis software Stat

3条回答
  •  醉酒成梦
    2020-12-28 20:40

    The only Python library for STATA interoperability I could find merely provides read-only access to .dta files. The R foreign library however provides a function write.dta, and RPy provides a Python interface to R. Maybe the combination of these tools can help you.

提交回复
热议问题