views:

50

answers:

3

Hi,

Is there any way to import SPSS dataset into Python, preferably NumPy recarray format? I have looked around but could not find any answer.

Joon

A: 

gretl claims to import SPSS and export in a variety of formats, as does the R statistical suite. I've never dealt with SPSS data so cannot speak to their relative merits.

msw
+1  A: 

SPSS has an extensive integration with Python, but that is meant to be used with SPSS (now known as IBM SPSS Statistics). There is an SPSS ODBC driver that could be used with Python ODBC support to read a sav file.

Jon Peck
Or you could just save it in whatever format you like using python from inside SPSS, I assume? Both solutions require that ‘joon’ has access to SPSS though (which is quite expensive AFAIK).
JanC
+1  A: 

To be clear, the SPSS ODBC driver does not require an SPSS installation.

Jon Peck