python pandas读stata

import pandas as pd
a="D:\\statashu\\2\\1xx.dta"
df = pd.read_stata(a)
for index,row in df.iterrows():
    print(row["id"])

 

posted @ 2023-04-14 13:37  myrj  阅读(47)  评论(0编辑  收藏  举报