I am loading a rather large .csv file (>100 rows) that I need to print in longtable format and highlight the maximum value in each row. I found this thread Highlighting Extremal Values in Table which discussed the issue but the solution requires to add a line for each row.
I tried to use
\pgfplotstablegetrowsof{\data}
\pgfplotstabletypeset[
\foreach \n in {1,...,\pgfplotsretval}{
highlight row max ={\data}{\n},
}
]{\data}
but that won't compile. I have now spend several hours trying to work through the manuals of pgfplotstable, csvsimple and datatools looking for a solution (I'm not very well versed in LaTeX programming).
See also: Highlight min/max of value pairs on each row with pgfplotstable