vaex: csv file without header not supported
Hi, I am trying to load a CSV with no header using
df = vaex.open('data/star0000-1.csv',sep=",", header=None, error_bad_lines=False)
but I get
could not convert column 0, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 0, error: TypeError('getattr(): attribute name must be string')
could not convert column 1, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 1, error: TypeError('getattr(): attribute name must be string')
could not convert column 2, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 2, error: TypeError('getattr(): attribute name must be string')
could not convert column 3, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 3, error: TypeError('getattr(): attribute name must be string')
could not convert column 4, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 4, error: TypeError('getattr(): attribute name must be string')
could not convert column 5, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 5, error: TypeError('getattr(): attribute name must be string')
could not convert column 6, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 6, error: TypeError('getattr(): attribute name must be string')
could not convert column 7, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 7, error: TypeError('getattr(): attribute name must be string')
could not convert column 8, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 8, error: TypeError('getattr(): attribute name must be string')
could not convert column 9, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 9, error: TypeError('getattr(): attribute name must be string')
could not convert column 10, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 10, error: TypeError('getattr(): attribute name must be string')
could not convert column 11, error: TypeError('getattr(): attribute name must be string'), will try to convert it to string
Giving up column 11, error: TypeError('getattr(): attribute name must be string')
Also it takes like 20x the time to do nothing, any help?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (11 by maintainers)
May I try my hands on solving the issue? I would appreciate help along the way.
Hi Argenis,
You can pass the argument
names, which is passed down to pandas (I don’t like that argument name though). Vaex indeed should take only string argument names. I think we can do better with the error messages, lets keep this open till we fix this.cheers,
Maarten