Python sas7bdat module usage

后端 未结 4 895
温柔的废话
温柔的废话 2021-02-20 12:41

I have to dump data from SAS datasets. I found a Python module called sas7bdat.py that says it can read SAS .sas7bdat datasets, and I think it would be simpler and more straigh

4条回答
  •  独厮守ぢ
    2021-02-20 13:12

    I know I'm late for the answer, but in case someone searches for similar question. The best option is:

    import sas7bdat
    from sas7bdat import *
    foo = SAS7BDAT('/support/sas/locked_data.sas7bdat')
    # This converts to dataframe:
    ds = foo.to_data_frame()
    

提交回复
热议问题