November 5th, 2013, 02:37 PM
SavReaderWriter Unicode String Error
I am new to python and I am building a small program to convert CSV to SAV (SPSS file) as a self-learning project.
This is how my data looks like from the csv reader
Here is my code to write above data to SAV file.
I got below error when I run the code
I googled the error but unable to find much so would you please let me know what I need to change in my code? Also, can you give me some suggestion or how to change my code so it could be more dynamic that I dont have to hard-coded the variables name and type.
My data is fairly consistent. The first columns is always string, second is the date and everything else from the third is numeric.
Thank you very much for your input.