rogerlew / pyvttbl

Automatically exported from code.google.com/p/pyvttbl
10 stars 8 forks source link

DataFrame.read_tbl fails with CSV files that have spaces in column names #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a simple CSV file (comma-separated) with a space in one of its column 
names
2. Try to read it with read_tbl()
3. Observer!

What is the expected output? What do you see instead?

The file should be read correctly. Instead:
>>> df.read_tbl('test.csv')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win32\egg\pyvttbl\pyvttbl.py", line 247, in read_tbl
  File "build\bdist.win32\egg\pyvttbl\pyvttbl.py", line 324, in __getitem__
KeyError: 'a'

What version of the product are you using? On what operating system?
0.3.6.1 on Windows.

Original issue reported on code.google.com by gryw...@gmail.com on 9 Aug 2011 at 12:24

Attachments:

GoogleCodeExporter commented 9 years ago
fixed in version 0.3.6.3. spaces are replaced with underscores

Roger

Original comment by roger...@gmail.com on 11 Feb 2012 at 11:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 815e876d2ee1.

Original comment by roger...@gmail.com on 17 May 2012 at 11:45