SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  SPSS & pandas Python

    Posted 11/01/21 01:22 PM
    Morning, 

    I have a project coming up that I'm going to need to write the majority using pandas in Python which I don't know very well.  I was wondering if there was some sort of reference sheet between SPSS and pandas?  - Thanks Art.

    ------------------------------
    Art Jack
    ------------------------------

    #SPSSStatistics


  • 2.  RE: SPSS & pandas Python

    Posted 11/01/21 01:26 PM
    Hi, Art.

    Check Jon's info at:

    https://www.ibm.com/mysupport/s/question/0D50z00006PsFTT/using-pandas-in-spss?language=en_US

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 3.  RE: SPSS & pandas Python

    Posted 11/01/21 01:34 PM
    Since that link was written, Statistics has improved the connection with Statistics, and the STATS PACKAGE INSTALL extension command is available to install external packages such as pandas in the Python installation that Statistics uses.  That extension works smoothly with V28.  It works also with V27, but it might require administrator mode in that case.  I have not tried it on earlier versions, which use Python 3.4, so I can't say whether it would work there, but in that case you would need an older version of pandas.  It will definitely not work with Python 2.7. 

    --