[Python] pyreadstat read and write spss without data loss

Discussão em 'Python' iniciado por Stack, Março 26, 2025.

  1. Stack

    Stack Membro Participativo

    To read an spss .sav file using pandas/pyreadstat, you use:

    df, meta = pyreadstat.read_sav()


    to write a dataframe, you use:

    pyreadstat.write_sav(df)


    How can I read, edit and write a .sav file without losing any meta data, like labels and other things that can be changed in spss?

    If this is not possible entirely, what would be the closest to not losing data this way?

    Continue reading...

Compartilhe esta Página