How do you convert .sav into .csv, or .sav into pandas DataFrame? Is there a direct way or doing this or a package that can do this?
Asked
Active
Viewed 1.8k times
2 Answers
6
GNU PSPP project (replacement for the proprietary program SPSS) has a helper tool to do this online - https://pspp.benpfaff.org/
To do this locally 1. Download GNU PSPP - http://www.gnu.org/software/pspp/get.html 2. Use command line to do the conversion
pspp-convert <input.sav> <output.csv>
Similar question - How to open spss data files in excel?

hrmnjt
- 183
- 7
0
You are probably looking for the pyreadstat module, you can find some code snippet to start on the github page.

mucio
- 7,014
- 1
- 21
- 33
-
I've followed the code and get an error, "from .pyreadstat import read_sas7bdat, read_xport, read_dta, read_sav, read_por, read_sas7bcat ImportError: DLL load failed: The specified module could not be found." – Sep 11 '19 at 21:34
-
-
Why would this make a difference? I just use Pycharm interface and manually install these libraries from there – Sep 13 '19 at 05:38
-
maybe [this](https://github.com/Roche/pyreadstat/issues/33) can help you – mucio Sep 13 '19 at 10:17