'Writing in stata (.dta) format from python dataframe
I'm using the following code to write my data frame output in excel (.xlsx). I want to rewrite the code so that that data is written in stata format (.dta) instead. I'm a newbie and have no clue what so ever. Any help is appreciated.
with pd.ExcelWriter("outputlist1.xlsx", engine='xlsxwriter') as writer:
list1_df.to_excel(writer, "List1", index=False)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
