best way to start with Python (macros)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

best way to start with Python (macros)

progster
Dear all, i would like to start learning Python, but I found out a jungle of information and I am not sure which is the best reference.

My principal goal is passing some spss macro to python code, such as positional and do loops stuff.

I would like also to create nested macros: an additional define macro within a define macro, which I was told it's not allowed.

I downloaded the SPSS Programming and Data Management pdf, but don't know if it's the best option.

thanks!
Reply | Threaded
Open this post in threaded view
|

Re: best way to start with Python (macros)

Ruben Geert van den Berg
I wrote a bunch of tutorials on Python for SPSS with quite some real world examples: http://www.spss-tutorials.com/python/.

I wrote these because I was dissatisfied with the standard documentation on learning Python for SPSS: I found it hard to read, overly theoretical and not really aimed towards getting typical SPSS tasks done.

Alternatively, Google for something like "Python SPSS" but you'll probably end up in the same place.

HTH,

Ruben

Reply | Threaded
Open this post in threaded view
|

Re: best way to start with Python (macros)

Jon K Peck
In reply to this post by progster
There are lots of good Python learning materials available, but the Programming and Data Management book is a very good place to start, since it focuses on using basic Python to do typical SPSS Statistics tasks.  You can make use of the SPSS Community forums for questions.  There are lots of queries in the getting started subforum on that site.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        progster <[hidden email]>
To:        [hidden email]
Date:        07/20/2015 01:12 AM
Subject:        [SPSSX-L] best way to start with Python (macros)
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Dear all, i would like to start learning Python, but I found out a jungle of
information and I am not sure which is the best reference.

My principal goal is passing some spss macro to python code, such as
positional and do loops stuff.

I would like also to create nested macros: an additional define macro within
a define macro, which I was told it's not allowed.

I downloaded the SPSS Programming and Data Management pdf, but don't know if
it's the best option.

thanks!




--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/best-way-to-start-with-Python-macros-tp5730176.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD