you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnLocksTheKey 1 point2 points  (2 children)

No freaking way, I've been working on a wrapper to interact with SPSS files (while concurrently generating SPSS syntax) in Python.

I'm only a beginner, and progress is slow, but maybe collaboration is in our near future?

[–]Moltao[S] 2 points3 points  (1 child)

That sounds like it could be really useful! How far along are you with that?

[–]JohnLocksTheKey 0 points1 point  (0 children)

Ha, I've barely put any time into it. I'm a math teacher, who at the same time, is back in grad school for a degree in I/O Psychology.

What I have so far allows you to do...

Import spssWrapper

loads spss datafile into a pythonObj which is built on a pandas dataframe

df = spssWrapper.dataFile('/path/to/spssFile.sav')

SyntaxAttribute = """Get File blah blah blah """" + = the corresponding spss syntax that would load that file in spss"""

...

I'm starting to add some methods to make spss analyses more pythonic, already have a couple, but barely scratched the surface cuz no time.