Wrong alignment for SAV (SPSS) files and enhnace to read roles #246
Labels
bug
Something isn't working
enhancement
New feature or request
requires changes in Readstat
waiting for changes in the C library Readstat
to be reported in Readstat
Task: To readin the file specification of an SPSS data file.
where FILE_PATH is the path to the file attached
df, data = pyreadstat.read_sav(FILE_PATH, metadataonly=False)
Description
3 Problems
Bug: 1. Attributes missing_ranges and missing_user_values remain at {} even though the file does have missing value entries in variable view in SPSS.
... from pycharm
missing_ranges = {dict:0} {}
missing_user_values = {dict:0} {}
Bug: 2. variable_alignment is a set of key/value pairs where the value is always 'unknown'
variable_alignment = {dict: 12}
C22326161.zip
{'ID': 'unknown', 'Responded': 'unknown', 'Previous': 'unknown', 'Controlpackage': 'unknown', 'Age': 'unknown', 'Income': 'unknown', 'Education': 'unknown', 'Reside': 'unknown', 'Gender': 'unknown', 'Married': 'unknown', 'Children': 'unknown', 'Region': 'unknown'}
Enhancement: 3. role is currently not included in the attributes of the data block.
Describe the issue
A clear and concise description of what the issue is.
To Reproduce
df, data = pyreadstat.read_sav(FILE_PATH, metadataonly=False)
the data block holds the attributes mentioned above
File example
Attached
Expected behavior
Setup Information:
How did you install pyreadstat? (pip, conda, directly from repo)
using pip
Platform (windows, macOS, linux, 32 or 64 bit)
windows 10
Python Version
3.9
Python Distribution (System, plain python, Anaconda)
Using Virtualenv or condaenv?
venv
The text was updated successfully, but these errors were encountered: