variable_display_width sets the Column value instead of Width value in sav metadata sheet using pyreadstat.write_sav() #280
Labels
bug
Something isn't working
requires changes in Readstat
waiting for changes in the C library Readstat
to be reported in Readstat
I want to set the Width of variables in the Metadata sheet of sav(spss) file.
To Reproduce
pyreadstat.write_sav(
merged_df,
file_path,
column_labels=meta.column_names_to_labels,
variable_value_labels=meta.variable_value_labels,
variable_display_width={"RespondentID": 25, "SurveyID": 29}
)
I am using this to set the Width of Columns - RespondentId and SurveyId but it changes the Columns column of metadata instead of width data.
I am not able to upload an sav file here.
Expected behavior
A way to set the Width of variables in the metadata sheet.
The text was updated successfully, but these errors were encountered: