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
- Both missing_range and missing_user_values to be populated correctly
- Variable_alignment should be populated with { Left, Right or Center} instead of Unknown
- Role should be added as an attribute woith possible values {Input, Target, Both, None, Partition, Split}
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
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