Shortest way to strip the commas from column n given a .csv file/input Ok, so the input here is going to be a .csv file and so is the output. Now, given a .csv file/input like so

"apple","banana","apple,banana","orange"
"grape","orange","grape,orange","sprout"
# 0       1        2              3


strip out all commas for a given nth column's entries (index starts at 0). So, for the input above, the program would output a .csv file like so for n = 2:

"apple","banana","applebanana","orange"
"grape","orange","grapeorange","sprout"


If the particular column's entries do not have commas, then it does nothing. Could have any allowable/manageable number of columns, and if you somehow find that creating a program that takes more than one argument, say, a, b, c, ..., z like this

program(a=1,b=4,c=65, ..., z=0, mycsv.csv)


for respective columns 2, 5, and 66, which all strip out commas for each, to be shorter, then do that.



Shortest code measured in bytes wins, and it doesn't have to be a file that is output/input.
JavaScript (ES6), 95 93 90 bytes
Takes the content of the CSV file as its first parameter and the column index as its second parameter, with currying syntax.


let f =

s=&gt;n=&gt;s.split(/("[^"]*")/).map(c=&gt;(c&lt;' '?(k=0,c):k++-n*2?c:c.split`,`.join``),k=-1).join``

console.log(f(
`"apple","banana","apple,banana","orange"
"grape","orange","grape,orange","sprout"
`)(2));