Replies: 1 comment 2 replies
-
Hi @exonimbus - rapidcsv allows four different parsing "modes" with respect to row/column headers. By default (default LabelParams) it treats first row as column headers and allows access to first column as data - I think this is what you're looking for - see example. Perhaps you can share how you use rapidcsv (especially how The other three label/header modes are listed in Reading a File with Column and Row Headers. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Excellent library by the way, but none of the column named based addressing works as expected which is a bit of a let down. Mostly when calling GetCell() the overload that uses columnname as a string for addressing, ifcalled with the first column's name, it will always fail to find it and throw an exception. Because of this type of addressing problems GetCell() will not work either when called with the name of the first column in the csv file. Very annoying defect, please fix it if it is at all possible. I am a quick getting around this problem by always using numeric column index addressing when calling GetCell, but GetColumnNames would be very valuable if working well, particularly when one doesn't know exactly how many columns to expect in a csv and it would be most excellent if column name discovery would work as expected (i.e. don't skip first column and report the actual number of columns instead of number of columns - 1). Many thanks for creating this library, it is indeed very useful otherwise.
Beta Was this translation helpful? Give feedback.
All reactions