wesm/pandas — Issue #356: read_csv error
Author: aman-thakral
Created: 2011-11-10 17:54:40+00:00
State: open

I get the following traceback when trying to read a csv_file:

Traceback (most recent call last):
File "C:\src\OSR\OSR\run.py", line 127, in
pheno_data = read_data(base_dir+'pheno_data_num_id.csv')
File "C:\src\OSR\OSR\run.py", line 41, in read_data
pheno_data = pandas.read_csv(filename,index_col=0,na_values='')
File "C:\src\pandas\pandas\io\parsers.py", line 64, in read_csv
return parser.get_chunk()
File "C:\src\pandas\pandas\io\parsers.py", line 405, in get_chunk
data = _convert_to_ndarrays(data, self.na_values)
File "C:\src\pandas\pandas\io\parsers.py", line 449, in _convert_to_ndarrays
result[c] = _convert_types(values, na_values)
File "C:\src\pandas\pandas\io\parsers.py", line 456, in _convert_types
lib.sanitize_objects(values, na_values)
TypeError: sanitize_objects() takes exactly one argument (2 given)