pyreadstat icon indicating copy to clipboard operation
pyreadstat copied to clipboard

Feature Idea/Request: Reading and Writing Custom Attributes from SAV files

Open Ov-ille opened this issue 2 years ago • 3 comments

In SPSS it is possible to create so called "Custom Attributes" for each variable, for example additional comments, calculation logic, etc.

Currently (as far as I could see) these are not imported or exported in pyreadstat.

Is there a way to also access them and have them available in the metadata container?

This is an example SAV File with 4 additionally created custom attributes:

SPSSCustomVarAttributes.zip

image

Ov-ille avatar Dec 08 '23 13:12 Ov-ille

Unfortunately it is not possible right now, as Readstat, the underlying C library does not provide it. It has to be requested and impkemented there first.

ofajardo avatar Dec 08 '23 13:12 ofajardo

there seems to be a readstat request for this since 2016 :)

xChillout avatar Dec 08 '23 13:12 xChillout

We may need to wait a bit longer then ... =)

ofajardo avatar Dec 08 '23 13:12 ofajardo