read_sas fails due to unclear problems in SAS dataset · Issue #16615 · pandas-dev/pandas (original) (raw)
Problem description
I was trying to read a SAS dataset with pandas 0.19.2. It was not successful, with an error: ValueError('Length of values does not match length of ' 'index').
After some research I came up with the idea, that new line symbol in one of the character values creates this error.
I removed new line and carriage return symbols from column values in SAS data and read_sas finished without errors after that. I assume that read_sas treats any new line symbol it encounters as new line of a table.
Expected Output
read_sas could translate new line symbols found in column values to space and finish without an error.