- #1
- 1,600
- 607
I have a little question related to reading, manipulating and writing .CSV table files... Suppose I have a table that has two columns and some number N of rows. The elements of the table have short character strings in them. How would I, with any common programming language, make a code that reads such a CSV file, orders the rows of the table so that the elements of 2nd column are in alphabetical order, and then writes the resulting table to another CSV file? So both columns are reordered but the new order depends only on the elements of the second column.
The reason why I'm asking is that such a code would help a relative of mine in things she does at work, and I though that someone here could have an example code that does something like that. It can be written with C, C#, R-Code, Python or anything.
The reason why I'm asking is that such a code would help a relative of mine in things she does at work, and I though that someone here could have an example code that does something like that. It can be written with C, C#, R-Code, Python or anything.