user11357465
user11357465

Reputation:

How to convert .sav file into csv file

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?

Upvotes: 5

Views: 30093

Answers (2)

mucio
mucio

Reputation: 7119

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

Upvotes: 0

hrmnjt
hrmnjt

Reputation: 193

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?

Upvotes: 7

Related Questions